changed build for ci
This commit is contained in:
parent
94e8f8ee02
commit
bb799fe886
3 changed files with 15 additions and 5 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -1,3 +1,9 @@
|
||||||
|
# ---> OWN
|
||||||
|
|
||||||
|
compiled/
|
||||||
|
compiled/*
|
||||||
|
compiled.zip
|
||||||
|
|
||||||
# ---> C
|
# ---> C
|
||||||
# Prerequisites
|
# Prerequisites
|
||||||
*.d
|
*.d
|
||||||
|
|
10
build.sh
Normal file → Executable file
10
build.sh
Normal file → Executable file
|
@ -1,6 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/ash
|
||||||
clear
|
base=xonotic-data.pk3dir
|
||||||
declare base=xonotic-data.pk3dir
|
|
||||||
|
|
||||||
: ${PROGS_OUT:=$PWD}
|
: ${PROGS_OUT:=$PWD}
|
||||||
export PROGS_OUT
|
export PROGS_OUT
|
||||||
|
@ -14,5 +13,6 @@ export XONOTIC=1
|
||||||
make -C ${base}
|
make -C ${base}
|
||||||
echo "Compiled successfully!";
|
echo "Compiled successfully!";
|
||||||
mkdir -vp $(dirname "$0")/compiled
|
mkdir -vp $(dirname "$0")/compiled
|
||||||
mv -v *.lno $(dirname "$0")/compiled
|
mv -v *.dat $(dirname "$0")/compiled
|
||||||
mv -v *.dat $(dirname "$0")/compiled
|
rm *.lno
|
||||||
|
zip -9 compiled.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
|
||||||
|
|
4
ci-dependencies.sh
Normal file
4
ci-dependencies.sh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/ash
|
||||||
|
apk update
|
||||||
|
apk add --no-cache make gcc g++ zip git
|
||||||
|
|
Loading…
Reference in a new issue