-
Notifications
You must be signed in to change notification settings - Fork 34
77 lines (72 loc) · 1.85 KB
/
ubuntu.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
66
67
68
69
70
71
72
73
74
75
76
77
name: Ubuntu_CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 7 * * *'
jobs:
build_test_jammy:
runs-on: ubuntu-22.04
strategy:
matrix:
cc: [gcc-9, gcc-10, gcc-11, gcc-12, clang-13, clang-14]
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup
run: sudo ./setup/ubuntu/22.04/install_prereqs.sh
- name: build and test
run: |
CC=${{ matrix.cc }} bazel test //... \
-c dbg \
--test_output=errors \
--verbose_failures
build_test_focal:
runs-on: ubuntu-20.04
strategy:
matrix:
cc: [gcc-9, gcc-10, clang-10, clang-11, clang-12]
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup
run: sudo ./setup/ubuntu/20.04/install_prereqs.sh
- name: build and test
run: |
CC=${{ matrix.cc }} bazel test //... \
-c dbg \
--test_output=errors \
--verbose_failures
ubsan_focal:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup
run: sudo ./setup/ubuntu/22.04/install_prereqs.sh
- name: build and test
run: |
CC=clang-14 bazel test //... \
-c dbg \
--config ubsan \
--test_output=errors \
--test_tag_filters=-no_ubsan \
--linkopt=-lgcc_s \
--verbose_failures
asan_focal:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup
run: sudo ./setup/ubuntu/22.04/install_prereqs.sh
- name: build and test
run: |
CC=clang-14 bazel test //... \
-c dbg \
--config asan \
--test_output=errors \
--test_tag_filters=-no_asan \
--verbose_failures