Skip to content

Commit 8437ada

Browse files
author
vsilent
committed
The problem was cross build reusing the default target directory, which already contained host-built build-script binaries. Now musl build uses its own isolated target di
1 parent e2c9a46 commit 8437ada

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/docker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
run: cargo test
4242

4343
- name: Build static release
44+
env:
45+
CARGO_TARGET_DIR: target-cross
4446
run: cross build --release --target x86_64-unknown-linux-musl
4547

4648
- name: Build frontend
@@ -56,7 +58,7 @@ jobs:
5658
- name: Package app
5759
run: |
5860
mkdir -p app/stackdog/dist
59-
cp target/x86_64-unknown-linux-musl/release/stackdog app/stackdog/
61+
cp target-cross/x86_64-unknown-linux-musl/release/stackdog app/stackdog/
6062
cp -a web/dist/. app/stackdog/
6163
cp docker/prod/Dockerfile app/Dockerfile
6264
touch app/.env

0 commit comments

Comments
 (0)