Set environment variables to hopefully allow cargo to see the pre-built dependencies
All checks were successful
Podman Rootless Demo / test-backend (push) Successful in 10m26s
All checks were successful
Podman Rootless Demo / test-backend (push) Successful in 10m26s
This commit is contained in:
parent
2f05c3c36d
commit
5be5159d88
1 changed files with 3 additions and 0 deletions
|
|
@ -113,6 +113,9 @@ jobs:
|
||||||
mkdir -p /workspace
|
mkdir -p /workspace
|
||||||
tar -x -C /workspace
|
tar -x -C /workspace
|
||||||
cd /workspace/backend
|
cd /workspace/backend
|
||||||
|
# Use pre-built dependencies from the image
|
||||||
|
export CARGO_TARGET_DIR=/app/target
|
||||||
|
export CARGO_REGISTRY_DIR=/usr/local/cargo/registry
|
||||||
# Build local crates using pre-built external dependencies
|
# Build local crates using pre-built external dependencies
|
||||||
cargo build --release --locked
|
cargo build --release --locked
|
||||||
cargo test --lib -- --test-threads=1
|
cargo test --lib -- --test-threads=1
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue