mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
local dockerized build
This commit is contained in:
parent
8fa0f8a409
commit
393634a1a4
12 changed files with 93 additions and 71 deletions
13
bin/release.sh
Executable file
13
bin/release.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env sh
|
||||
set -exo pipefail
|
||||
docker inspect tek || time docker build --cache-from=internal -t tek .
|
||||
time docker run \
|
||||
-itu0 \
|
||||
-v .:/build -w /build \
|
||||
-vtek-build-cargo:/home/build/.cargo \
|
||||
-vtek-build-target:/build/target \
|
||||
-eRUST_JACK_DLOPEN=true \
|
||||
tek sh -c "chown -R 1000:1000 /build/target \
|
||||
&& su build -c 'source ~/.cargo/env \
|
||||
&& just build-release \
|
||||
&& cp target/release/tek bin/'"
|
||||
Loading…
Add table
Add a link
Reference in a new issue