Skip to content

Commit

Permalink
fix: specify asan linking for doc tests
Browse files Browse the repository at this point in the history
Actually, the issue was that I wasn't linking asan for the doc tests.
  • Loading branch information
jmayclin committed Dec 4, 2024
1 parent c1a58e8 commit 6e9f7a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci_rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,18 +226,20 @@ jobs:
- name: Install Rust toolchain
id: toolchain
run: |
rustup toolchain install nightly \
rustup toolchain install ${{env.RUST_NIGHTLY_TOOLCHAIN }} \
--profile minimal \
--component rust-src \
--target x86_64-unknown-linux-gnu
rustup override set ${{ env.RUST_NIGHTLY_TOOLCHAIN }}
- name: Generate
run: ./${{env.ROOT_PATH}}/generate.sh --skip-tests

- name: Run Unit Tests under ASAN
run: |
RUSTDOCFLAGS=-Zsanitizer=address \
RUSTFLAGS=-Zsanitizer=address \
cargo +nightly test \
cargo test \
-Zbuild-std \
--manifest-path ${{ env.ROOT_PATH}}/Cargo.toml \
--target x86_64-unknown-linux-gnu
Expand Down

0 comments on commit 6e9f7a2

Please sign in to comment.