Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
metasim committed May 18, 2023
1 parent 3576d93 commit b41d884
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/sanitizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install build deps
shell: bash
run: |
apt-get update -y
apt-get install build-essential curl pkg-config libclang-dev -y
apt-get install curl -y
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --profile minimal --default-toolchain none -y
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH
Expand All @@ -31,9 +32,12 @@ jobs:
rustup toolchain install nightly --profile minimal --component rust-src
rustup override set nightly
- name: Get target triple
- name: Install cargo-careful
run: |
echo "TARGET=$(rustc -vV | awk '/^host: / { print $2 }')" >>${GITHUB_ENV}
export CAREFUL=${CARGO_HOME:-$HOME/.cargo}/bin/cargo-careful
curl -L https://github.com/RalfJung/cargo-careful/releases/download/v0.3.4/cargo-careful.x86_64-unknown-linux-musl > "${CAREFUL}"
chmod +x "${CAREFUL}"
cargo careful setup
- name: Run tests with careful
env:
Expand All @@ -42,5 +46,4 @@ jobs:
# leak detection, otherwise it'll report memory leak false positives
ASAN_OPTIONS: verbose=1:atexit=1:detect_stack_use_after_return=1:strict_string_checks=1:detect_leaks=0
run: |
cargo install cargo-careful
cargo careful test -Zbuild-std --all -Zcareful-sanitizer

0 comments on commit b41d884

Please sign in to comment.