-
Notifications
You must be signed in to change notification settings - Fork 18
65 lines (55 loc) · 1.47 KB
/
sanitizer_builds.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
58
59
60
61
62
63
64
65
name: Sanitizer Builds
on:
push:
branches:
- main
- dev
pull_request:
paths-ignore:
- .gitignore
- CLA.md
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- cpu-features.md
- LICENSE
- LICENSE-APACHE
- README.md
workflow_dispatch:
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linux:
runs-on: ubuntu-22.04
strategy:
matrix:
compiler: [ clang ]
bits: [ 32, 64 ]
edition: [ "" ] # ignore c89 for now
#edition: [ c89, "" ]
steps:
- name: Setup | Update
run: sudo apt-get update
- name: Setup | Install Ninja
run: sudo apt-get install ninja-build
- name: Setup | Install multilib libraries
if: ${{ matrix.bits == 32 }}
run: sudo apt-get install gcc-multilib g++-multilib
- name: Setup Clang
if: ${{ matrix.compiler == 'clang' }}
run: |
echo "CC=clang" >> $GITHUB_ENV
echo "CXX=clang++" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v3
- name: mach | Test
uses: ./.github/actions/mach_test
with:
bits: ${{ matrix.bits }}
edition: ${{ matrix.edition }}
args: -s ubsan,asan
- name: Upload artifacts
uses: ./.github/actions/upload_artifacts
with:
name: linux_${{ matrix.compiler }}_${{ matrix.bits }}_${{ matrix.edition }}