YOOOO #308
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
sm-version: [ '1.10', '1.11' ] | |
name: SM version ${{ matrix.sm-version }} | |
steps: | |
# leave this at first. This will reset all of the files. | |
- name: Setup Source | |
uses: actions/checkout@master | |
- name: Setup SourceMod | |
run: | | |
wget --input-file=http://sourcemod.net/smdrop/${{ matrix.sm-version }}/sourcemod-latest-linux | |
tar -xzf $(cat sourcemod-latest-linux) | |
- name: Setup Include | |
working-directory: addons/sourcemod/scripting | |
run: | | |
wget "http://www.doctormckay.com/download/scripting/include/morecolors.inc" -P include | |
wget "https://raw.githubusercontent.com/asherkin/TF2Items/master/pawn/tf2items.inc" -P include | |
wget "https://raw.githubusercontent.com/nosoop/tf2attributes/master/scripting/include/tf2attributes.inc" -O include/tf2attributes.inc | |
wget "https://raw.githubusercontent.com/TeamPotry/tutorial_text/master/addons/sourcemod/scripting/include/tutorial_text.inc" -P include | |
wget "https://raw.githubusercontent.com/TeamPotry/DB-Simple/master/addons/sourcemod/scripting/include/db_simple.inc" -P include | |
wget "https://raw.githubusercontent.com/TeamPotry/plugins_in_FF2/master/addons/sourcemod/scripting/include/unixtime_sourcemod.inc" -P include | |
wget "https://raw.githubusercontent.com/nosoop/SM-TFUtils/master/scripting/include/tf2utils.inc" -P include | |
wget "https://raw.githubusercontent.com/nosoop/sourcemod-tf2wearables/master/addons/sourcemod/scripting/include/tf2wearables.inc" -P include | |
wget "https://raw.githubusercontent.com/peace-maker/DHooks2/dynhooks/sourcemod_files/scripting/include/dhooks.inc" -P include | |
wget "https://raw.githubusercontent.com/Nopied/MannVsMann/master/addons/sourcemod/scripting/include/mannvsmann.inc" -P include | |
wget "https://raw.githubusercontent.com/TeamPotry/FF2_boss_selection/master/addons/sourcemod/scripting/include/ff2_boss_selection.inc" -P include | |
wget "https://raw.githubusercontent.com/TeamPotry/plugins_in_FF2/master/addons/sourcemod/scripting/include/medigun_patch.inc" -P include | |
wget "https://forums.alliedmods.net/attachment.php?attachmentid=164494&d=1501170745" -O include/CBaseAnimatingOverlay.inc | |
- name: Compile | |
working-directory: addons/sourcemod/scripting | |
run: | | |
chmod +x spcomp | |
mkdir compiled compiled/freak_fortress_2 | |
mkdir compiled/freak_fortress_2/ability | |
./compile.sh freak_fortress_2.sp freak_fortress_2/*.sp freak_fortress_2/ability/*.sp | |
- name: Upload plugin artifact | |
uses: actions/upload-artifact@master | |
with: | |
name: SM ${{ matrix.sm-version }} | |
path: addons/sourcemod/scripting/compiled |