image: archlinux packages: - xbps-static-bin - openssl - go - clang sources: - https://git.e3t.cc/~core/trifid tasks: - archive: | curl https://sh.rustup.rs -sSf | sh -s -- -y source ~/.cargo/env rustup target add x86_64-unknown-linux-musl 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 - build: | source ~/.cargo/env cd /home/build/trifid/packages/void_amd64_$project ./build.sh /home/build/trifid $pkgver sha256sum *.xbps