Skip to content
Permalink
Browse files

Use of SetupSP

  • Loading branch information
Bara committed Nov 16, 2019
1 parent d50a061 commit 82a88a88b541f3e85cf1d938da56b0562a451f09
Showing with 6 additions and 10 deletions.
  1. +6 −10 .github/workflows/master.yml
@@ -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: |
@@ -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

@@ -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 }}/

0 comments on commit 82a88a8

Please sign in to comment.
You can’t perform that action at this time.