update #21
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 SAMP Gamemode | |
on: | |
workflow_dispatch: | |
push: | |
branches: [cwj-v2] | |
pull_request: | |
branches: [cwj-v2] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Compile CWJ Filterscript | |
run: | | |
cd pawno | |
scripts=$(find ../filterscripts -name "*.pwn") | |
for script in $scripts; do | |
./pawncc.exe "$script" --% -Dfilterscripts -;+ -(+ -d3 | |
done | |
- name: Compile CWJ Gamemode | |
run: | | |
cd pawno | |
./pawncc.exe ../gamemodes/bb_freeroam.pwn --% -Dgamemodes -;+ -(+ -d3 | |
- name: Commit and push if changed | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Action" | |
git add -A | |
git diff --quiet && git diff --staged --quiet || (git commit -m 'Update compiled gamemode' && git push) |