Bump actions/setup-python from 4 to 5 #48
Workflow file for this run
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: Compile with SourceMod | |
on: | |
pull_request: | |
branches: master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
SM_VERSION: ["1.11", "1.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set environment variables | |
run: | | |
SOURCEMOD_PATH=$GITHUB_WORKSPACE/addons/sourcemod | |
echo "SOURCEMOD_PATH=$SOURCEMOD_PATH" >> $GITHUB_ENV | |
echo "SCRIPTS_PATH=$SOURCEMOD_PATH/scripting" >> $GITHUB_ENV | |
- name: Setup SourcePawn Compiler ${{ matrix.SM_VERSION }} | |
uses: rumblefrog/setup-sp@master | |
with: | |
version: ${{ matrix.SM_VERSION }} | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: python3 -m pip install --upgrade pip setuptools wheel | |
- name: Download colorlib-gen | |
run: | | |
cd tools | |
git clone https://github.com/c0rp3n/colorlib-gen.git | |
- name: Install colorlib-gen | |
run: | | |
cd tools/colorlib-gen | |
pip install -r ./requirements.txt | |
python3 ./setup.py install | |
- name: Generate colorlib_map.inc | |
run: colorlib_gen -r --config "./ttt_colors.yaml" "../addons/sourcemod/scripting/include/colorlib_map.inc" | |
working-directory: ./tools | |
- name: Compile TTT | |
run: | | |
for file in *.sp | |
do | |
echo -e "\nCompiling $file..." | |
spcomp -E -w234 -O2 -v2 -i $includePath -i $SCRIPTS_PATH/include $file | |
done | |
working-directory: ${{ env.SCRIPTS_PATH }}/ttt | |
- name: Compile 3rd party plugins | |
run: | | |
for plugin in "block_messages" "customkeyvalues" "discord_api" "no_weapon_fix" "turret_core" "vphysics_crash_avoider" | |
do | |
echo -e "\nCompiling $plugin.sp..." | |
spcomp -E -w234 -O2 -v2 -i $includePath -i $SCRIPTS_PATH/include $plugin.sp | |
done | |
working-directory: ${{ env.SCRIPTS_PATH }}/ |