Skip to content

Commit 2b26a01

Browse files
committed
Fix missing environment variable from Rust API test runners
1 parent 2895d00 commit 2b26a01

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/pull-request-check-rust-api.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ jobs:
6161
# by the other jobs already present in `pull-request-checks.yaml`.
6262
- name: Run Rust API tests
6363
run: |
64+
VERSION=$(ruby -ne 'puts $~.captures if /^CBMC_VERSION\ =\ (\d+.\d+.\d+)$/' src/config.inc)
6465
cd src/libcprover-rust;\
6566
cargo clean;\
66-
CBMC_BUILD_DIR=../../${{env.default_build_dir}} SAT_IMPL=${{env.default_solver}} cargo test -- --test-threads=1
67+
CBMC_BUILD_DIR=../../${{env.default_build_dir}} CBMC_VERSION=$VERSION cargo test -- --test-threads=1
6768
6869
6970
check-macos-12-cmake-clang-rust:
@@ -100,6 +101,7 @@ jobs:
100101
# by the other jobs already present in `pull-request-checks.yaml`.
101102
- name: Run Rust API tests
102103
run: |
104+
VERSION=$(ruby -ne 'puts $~.captures if /^CBMC_VERSION\ =\ (\d+.\d+.\d+)$/' src/config.inc)
103105
cd src/libcprover-rust;\
104106
cargo clean;\
105-
CBMC_BUILD_DIR=../../${{env.default_build_dir}} SAT_IMPL=${{env.default_solver}} cargo test -- --test-threads=1
107+
CBMC_BUILD_DIR=../../${{env.default_build_dir}} CBMC_VERSION=$VERSION cargo test -- --test-threads=1

0 commit comments

Comments
 (0)