-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.35 KB
/
test_sanitizer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Test AddressSanitizer
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: on
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.3
- name: Install Ubuntu Dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: llvm
version: 1.0
if: matrix.os == 'ubuntu-latest'
- name: Install MacOS Dependencies
run: |
brew update
brew install llvm || echo "This step will fail because of python@3.11 so we force link and ignore the error"
brew link --overwrite python@3.11
if: matrix.os == 'macos-latest'
- name: Install Nightly Rust and Sources
run: rustup toolchain install nightly --component rust-src
- name: Checkout the repository
uses: actions/checkout@v3
with:
submodules: true
- name: Run tests address
run: cargo +nightly xtask address-sanitizer
env:
RUST_BACKTRACE: full
RUSTC_WRAPPER: sccache
- name: Run tests thread
run: cargo +nightly xtask thread-sanitizer
env:
RUST_BACKTRACE: full
RUSTC_WRAPPER: sccache