Skip to content

Commit

Permalink
Update CI once again
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Oct 6, 2023
1 parent b477e37 commit a93f53c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci-sanitizers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
# only one target for now
env:
TARGET: x86_64-unknown-linux-gnu
RUST_BACKTRACE: full

jobs:
enable_matrix:
Expand All @@ -21,10 +22,8 @@ jobs:
matrix:
crate: [core, alloc, std, simd, stdarch]
sanitizer: [address, memory, thread, cfi, safestack, leak]
exclude:
# FIXME can't get this to compile because of conflicts with lto
# and embed-bitcode
- sanitizer: cfi
# exclude:
# - sanitizer: cfi
name: Test ${{ matrix.crate }} with ${{ matrix.sanitizer }} sanitizer
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 1 addition & 2 deletions ci-sanitizers-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ memtag)
cfi)
# CFI needs LTO and 1CGU, seems like randomize-layout enables `embed-bitcode=no`
# which conflicts
RUSTFLAGS=${RUSTFLAGS//-Zrandomize-layout/}
RUSTFLAGS="${RUSTFLAGS} -Zsanitizer=cfi -Clto -Ccodegen-units=1"
RUSTFLAGS="${RUSTFLAGS} -Zsanitizer=cfi -Clto -Cembed-bitcode=yes -Ccodegen-units=1"
;;
kcfi)
RUSTFLAGS="${RUSTFLAGS} -Zsanitizer=kcfi"
Expand Down
2 changes: 1 addition & 1 deletion sanitizers-run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ echo "running test with RUSTFLAGS ${RUSTFLAGS}"

# run test
cd "./${CRATE}_run_test"
cargo test "$@"
cargo test -vvv "$@"

0 comments on commit a93f53c

Please sign in to comment.