vestal/build/release-glibc.sh
unspeaker b165573e55
Some checks failed
/ build (push) Has been cancelled
update deps and add build infra
2025-04-28 00:57:02 +03:00

14 lines
501 B
Bash
Executable file

#!/usr/bin/env sh
set -exo pipefail
docker inspect vestal:glibc || time docker build --cache-from=internal \
-f build/Dockerfile.glibc -t vestal:glibc .
time docker run \
--rm -itu0 \
-v .:/build -w /build \
-vvestal-build-cargo:/home/build/.cargo \
-vvestal-build-target:/build/target \
-eRUST_JACK_DLOPEN=true \
vestal:glibc sh -c "chown -R 1000:1000 /build/target \
&& su build -c '. ~/.cargo/env \
&& time cargo build -j4 --release \
&& cp target/release/vestal build/'"