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