trifid/.builds/void.yml

36 lines
887 B
YAML
Raw Normal View History

image: archlinux
packages:
2023-06-27 12:51:58 +00:00
- xbps-static-bin
2023-06-27 12:48:08 +00:00
- openssl
2023-06-27 12:51:58 +00:00
- go
sources:
- https://git.e3t.cc/~core/trifid
tasks:
- archive: |
2023-06-27 13:01:10 +00:00
curl https://sh.rustup.rs -sSf | sh -s -- -y
source ~/.cargo/env
rustup target add x86_64-unknown-linux-musl
2023-06-27 12:56:08 +00:00
cd /home/build/trifid
describe=$(git describe)
if [[ $describe == tfclient* ]]; then
project=tfclient
fi
if [[ $describe == tfcli* ]]; then
project=tfcli
fi
if [[ $describe == trifid-api* ]]; then
project=trifid-api
fi
pkgver=$(git describe | sed -e 's/$project-v//g' | sed -e 's/-/_/g')
echo "project=$project" >> ~/.buildenv
echo "pkgver=$pkgver" >> ~/.buildenv
2023-06-27 12:56:08 +00:00
- build: |
2023-06-27 13:01:10 +00:00
source ~/.cargo/env
2023-06-27 12:56:08 +00:00
cd /home/build/trifid/packages/void_amd64_$project
2023-06-27 13:01:10 +00:00
./build.sh /home/build/trifid $pkgver
2023-06-27 12:56:08 +00:00
sha256sum *.xbps