Merge branch 'main' of https://git.hackmi.ch/amogus.tv/AmogusSpecialSauce
This commit is contained in:
commit
559210d147
3 changed files with 53 additions and 3 deletions
43
.drone.yml
Normal file
43
.drone.yml
Normal 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
|
10
build.sh
10
build.sh
|
@ -1,6 +1,9 @@
|
||||||
#!/bin/ash
|
#!/bin/ash
|
||||||
base=xonotic-data.pk3dir
|
base=xonotic-data.pk3dir
|
||||||
|
|
||||||
|
# Apply specialsauce
|
||||||
|
cp -R xonoticspecialsauce/* xonotic-data.pk3dir
|
||||||
|
|
||||||
: ${PROGS_OUT:=$PWD}
|
: ${PROGS_OUT:=$PWD}
|
||||||
export PROGS_OUT
|
export PROGS_OUT
|
||||||
stamp=$(date +"%s")
|
stamp=$(date +"%s")
|
||||||
|
@ -15,4 +18,9 @@ echo "Compiled successfully!";
|
||||||
mkdir -vp $(dirname "$0")/compiled
|
mkdir -vp $(dirname "$0")/compiled
|
||||||
mv -v *.dat $(dirname "$0")/compiled
|
mv -v *.dat $(dirname "$0")/compiled
|
||||||
rm *.lno
|
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
|
|
@ -1,4 +1,3 @@
|
||||||
#!/bin/ash
|
#!/bin/ash
|
||||||
apk update
|
apk update
|
||||||
apk add --no-cache make gcc g++ zip git
|
apk add --no-cache make gcc g++ zip git bash
|
||||||
|
|
Loading…
Reference in a new issue