1.0.0: add build infra and release

This commit is contained in:
🪞👃🪞 2025-04-27 21:18:36 +03:00
parent bba8d39872
commit e76133a10f
12 changed files with 104 additions and 3 deletions

14
build/release-glibc.sh Executable file
View file

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