mirror of
https://github.com/openharmony/third_party_rust_mio.git
synced 2026-06-30 20:58:01 -04:00
Enable testing with sanitizers on the CI
This commit is contained in:
@@ -139,6 +139,24 @@ jobs:
|
||||
run: cargo install --debug cargo-hack
|
||||
- name: Check all targets
|
||||
run: make check_all_targets
|
||||
Sanitizer:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
sanitizer: [address, leak, memory, thread]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: nightly
|
||||
override: true
|
||||
- name: Add rust source
|
||||
run: rustup component add rust-src
|
||||
- name: Run tests with sanitizer
|
||||
run: make test_sanitizer SAN=${{ matrix.sanitizer }}
|
||||
# Single job required to merge the pr.
|
||||
Passed:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user