Skip to content

Commit

Permalink
ci-rust: prepare for running in a Docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
generalmimon committed Sep 2, 2024
1 parent 5789f07 commit 02cfdee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ci-rust
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

. ./config

if [ -f /download/runtime/Cargo.lock ]; then
# We're in the Docker container, let's copy the lockfile recording the
# prefetched dependencies into the runtime library dir
( cd -- "$RUST_RUNTIME_DIR" && cp -v -t . /download/runtime/Cargo.lock )
# Tell Cargo to work in `--offline` mode (see
# https://doc.rust-lang.org/cargo/reference/config.html#netoffline)
export CARGO_NET_OFFLINE=true
fi

./run-rust

./kst-adoption-report rust
Expand Down
1 change: 1 addition & 0 deletions config
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ PERL_RUNTIME_DIR=../runtime/perl/lib
PHP_RUNTIME_DIR=../runtime/php
PYTHON_RUNTIME_DIR=../runtime/python
RUBY_RUNTIME_DIR=../runtime/ruby/lib
RUST_RUNTIME_DIR=../runtime/rust

TEST_OUT_DIR=test_out

0 comments on commit 02cfdee

Please sign in to comment.