This commit is contained in:
Alex 2023-08-20 16:25:59 +02:00
commit 559210d147
3 changed files with 53 additions and 3 deletions

43
.drone.yml Normal file
View file

@ -0,0 +1,43 @@
---
kind: pipeline
type: docker
name: Compile
platform:
arch: amd64
steps:
- name: Prepare Repo
image: alpine/git
commands:
- git submodule update --init --recursive
- name: Compile gmqcc
image: alpine
commands:
- chmod +x ci-dependencies.sh
- ./ci-dependencies.sh
- cd gmqcc
- make
- cd ..
- name: Compile SpecialSauce
image: alpine
commands:
- chmod +x ci-dependencies.sh
- chmod +x build.sh
- ./ci-dependencies.sh
- sh build.sh
- name: Release_binary
image: plugins/gitea-release
settings:
api_key:
from_secret: api_key
base_url: https://git.hackmi.ch
files: dist/*
checksum: md5,sha256
trigger:
event:
- tag

View file

@ -1,6 +1,9 @@
#!/bin/ash
base=xonotic-data.pk3dir
# Apply specialsauce
cp -R xonoticspecialsauce/* xonotic-data.pk3dir
: ${PROGS_OUT:=$PWD}
export PROGS_OUT
stamp=$(date +"%s")
@ -15,4 +18,9 @@ echo "Compiled successfully!";
mkdir -vp $(dirname "$0")/compiled
mv -v *.dat $(dirname "$0")/compiled
rm *.lno
zip -9 compiled.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
mkdir dist
if [[ -z "${DRONE_TAG}" ]]; then
zip -9 dist/compiled-$DRONE_TAG.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
else
zip -9 dist/compiled.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
fi

View file

@ -1,4 +1,3 @@
#!/bin/ash
apk update
apk add --no-cache make gcc g++ zip git
apk add --no-cache make gcc g++ zip git bash