Skip to content

Commit a77dce1

Browse files
fw-immunantahomescu
authored andcommitted
ci: on macOS, point rust at homebrew library directory for z3
1 parent 3e866d2 commit a77dce1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ jobs:
106106
- name: cargo test --release --workspace
107107
run: |
108108
export RUSTFLAGS="-D warnings"
109+
# add homebrew library path for z3; z3-sys 0.9.4 supports the
110+
# Z3_LIBRARY_PATH_OVERRIDE environment variable that would let
111+
# us override the library path, but that crate version is too new
112+
# for nightly-2022-08-08 (requires 2024 edition). On our nightly rustc
113+
# on Mac OS, we have to pass in the exact library path directly to RUSTFLAGS.
114+
export RUSTFLAGS="$RUSTFLAGS -Clink-arg=-L/opt/homebrew/lib -Clink-arg=-Wl,-rpath,/opt/homebrew/lib"
109115
export RUSTDOCFLAGS="-D warnings"
110116
cargo test --release --workspace
111117
- name: Test translator

0 commit comments

Comments
 (0)