Skip to content

Compile CWJ Gamemode and Filterscripts #1

Compile CWJ Gamemode and Filterscripts

Compile CWJ Gamemode and Filterscripts #1

Workflow file for this run

name: Compile CWJ Gamemode and Filterscripts
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 Filterscripts
run: |
cd pawno
Get-ChildItem -Filter "../filterscripts/*.pwn" | ForEach-Object {
./pawncc.exe $_ --% -Dfilterscripts -;+ -(+ -d3
}
- 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 "actions@github.com"
git config --global user.name "GitHub Action"
git add -A
git diff --quiet && git diff --staged --quiet || (git commit -m 'Update compiled gamemode and filterscripts' && git push)