build: workflow from hell (#1)
All checks were successful
Build / build-linux (push) Successful in 7s

This commit was merged in pull request #1.
This commit is contained in:
2024-03-20 17:11:35 +00:00
parent 09af9cba74
commit 8091ca53bb
5 changed files with 85 additions and 15 deletions

23
.gitea/scripts/ci.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
# setup
mkdir build
cd build
mkdir iw4
mkdir iw5
cd ..
# ready for release
cp iw4/scripts/mp/_jump.gsc build/iw4
# replace gsc extension with c. It will make gcc very happy
mv iw5/scripts/mp/_jump.gsc iw5/scripts/mp/_jump.c
# perform macro expansion
gcc -D_UTILITY_DEBUG -DIW5 -DCI -E "iw5/scripts/mp/_jump.c" -o _jump.in
# remove things gcc added to the file that we do not need
python3 .gitea/scripts/clean.py _jump.in _jump.gsc
# ready for release
mv _jump.gsc build/iw5/_jump.gsc