Skip to content

Commit

Permalink
Use of SetupSP
Browse files Browse the repository at this point in the history
  • Loading branch information
Bara committed Nov 16, 2019
1 parent d50a061 commit 82a88a8
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,16 @@ jobs:
run: |
VERSION=$(git rev-list --count HEAD)
SHORT=$(git describe --always --long --dirty)
BUILDER_PATH=$GITHUB_WORKSPACE/sdk/addons/sourcemod
SOURCEMOD_PATH=$GITHUB_WORKSPACE/addons/sourcemod
echo ::set-env name=PLUGIN_VERSION::${{ matrix.SM_VERSION }}.$VERSION-$SHORT
echo ::set-env name=BUILDER_PATH::$BUILDER_PATH
echo ::set-env name=SOURCEMOD_PATH::$SOURCEMOD_PATH
echo ::set-env name=COMPILER_PATH::$BUILDER_PATH/scripting
echo ::set-env name=SCRIPTS_PATH::$SOURCEMOD_PATH/scripting
echo ::set-env name=PLUGINS_PATH::$SOURCEMOD_PATH/plugins
- name: Download SourceMod
run: |
mkdir sdk
curl -Ls "http://www.sourcemod.net/latest.php?version=${{ matrix.SM_VERSION }}&os=linux" | tar zxf - -C ./sdk
chmod +x $COMPILER_PATH/spcomp
- name: Setup SourcePawn Compiler ${{ matrix.SM_VERSION }}
uses: rumblefrog/setup-sp@master
with:
version: ${{ matrix.SM_VERSION }}

- name: Set TTT version
run: |
Expand All @@ -46,7 +42,7 @@ jobs:
for file in *.sp
do
echo -e "\nCompiling $file..."
$COMPILER_PATH/spcomp -w234 -O2 -v2 -i $SCRIPTS_PATH/include $file
spcomp -w234 -O2 -v2 -i $SCRIPTS_PATH/include $file
done
working-directory: ${{ env.SCRIPTS_PATH }}/ttt

Expand All @@ -55,7 +51,7 @@ jobs:
for plugin in "block_messages" "discord_api" "no_weapon_fix" "tripmines" "turret_core"
do
echo -e "\nCompiling $plugin.sp..."
$COMPILER_PATH/spcomp -E -w234 -O2 -v2 -i $SCRIPTS_PATH/include $plugin.sp
spcomp -E -w234 -O2 -v2 -i $SCRIPTS_PATH/include $plugin.sp
done
working-directory: ${{ env.SCRIPTS_PATH }}/

Expand Down

0 comments on commit 82a88a8

Please sign in to comment.