Actually allow memory sanitizer to fail #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- uses: giraffate/clippy-action@v1 | |
with: | |
reporter: 'github-pr-review' | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
build_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Build | |
run: cargo build --features bundled --verbose | |
- name: Run tests | |
run: cargo test --features bundled --verbose | |
sanitizer: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
compiler: | |
- g++ | |
- clang++ | |
sanitizer: | |
- address | |
allow_fail: [false] | |
include: | |
- compiler: clang++ | |
sanitizer: memory | |
allow_fail: true | |
env: | |
DEBUG: "1" | |
RUSTC_BOOTSTRAP: "1" | |
CXX: "${{ matrix.compiler }}" | |
CXXFLAGS: "-fsanitize=${{ matrix.sanitizer }} -g" | |
RUSTFLAGS: "-Zsanitizer=${{ matrix.sanitizer }}" | |
RUSTDOCFLAGS: "-Zsanitizer=${{ matrix.sanitizer }}" | |
continue-on-error: ${{ matrix.allow_fail }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Rust source code | |
run: rustup component add rust-src --toolchain stable-x86_64-unknown-linux-gnu | |
- name: Build tests with ${{ matrix.compiler }} | |
run: cargo test --features bundled -Zbuild-std --target x86_64-unknown-linux-gnu --verbose --no-run | |
- name: Run tests with ${{ matrix.sanitizer }} sanitizer | |
run: cargo test --features bundled -Zbuild-std --target x86_64-unknown-linux-gnu --verbose --no-fail-fast | |