-
Notifications
You must be signed in to change notification settings - Fork 41
164 lines (160 loc) · 4.45 KB
/
Copy pathdefault.yaml
File metadata and controls
164 lines (160 loc) · 4.45 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
name: Default
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
pull_request:
branches: [main]
# Allows manually triggering this workflow from the Actions tab.
workflow_dispatch:
concurrency:
# Cancel previous actions from the same PR: https://stackoverflow.com/a/72408109
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
distros:
strategy:
matrix:
os:
- ubuntu-22.04
- ubuntu-24.04
bzlmod_config:
- bzlmod
- workspace
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: bazel-contrib/setup-bazel@0.15.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Test
run: |
ln -s .github/workflows/.bazelrc.ci .bazelrc.ci
bazel test --config ${{ matrix.bzlmod_config }} //...
compilation_modes:
strategy:
matrix:
compilation_mode:
- fastbuild
- dbg
- opt
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: bazel-contrib/setup-bazel@0.15.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Test
run: |
ln -s .github/workflows/.bazelrc.ci .bazelrc.ci
bazel test --compilation_mode ${{ matrix.compilation_mode }} //...
gcc_versions:
strategy:
matrix:
gcc_version:
- 12.5.0
- 13.4.0
- 14.3.0
- 15.2.0
- 16.1.0
- 16.2.0
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: bazel-contrib/setup-bazel@0.15.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Test GCC ${{ matrix.gcc_version }}
run: |
ln -s .github/workflows/.bazelrc.ci .bazelrc.ci
bazel test --//toolchain:gcc_version=${{ matrix.gcc_version }} //...
sanitizers:
strategy:
matrix:
sanitizer:
- asan
- lsan
- tsan
- ubsan
compilation_mode:
- fastbuild
- dbg
- opt
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: bazel-contrib/setup-bazel@0.15.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Test ${{ matrix.sanitizer }} (${{ matrix.compilation_mode }})
run: |
ln -s .github/workflows/.bazelrc.ci .bazelrc.ci
bazel test --compilation_mode ${{ matrix.compilation_mode }} --config ${{ matrix.sanitizer }} //tests/sanitizers:${{ matrix.sanitizer }}_test
coverage:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: bazel-contrib/setup-bazel@0.15.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Test Coverage
run: |
ln -s .github/workflows/.bazelrc.ci .bazelrc.ci
bazel coverage //examples/hello_world_cpp:hello_world_cpp_test //tests/coverage/...
bazel9:
runs-on: ubuntu-22.04
env:
USE_BAZEL_VERSION: 9.1.0
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: bazel-contrib/setup-bazel@0.15.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}-bazel9
repository-cache: true
- name: Test
run: |
ln -s .github/workflows/.bazelrc.ci .bazelrc.ci
bazel test -- //... -//docs/...
rbe:
strategy:
matrix:
os:
- ubuntu-22.04
- macos-14
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: bazel-contrib/setup-bazel@0.15.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Test with RBE
run: |
ln -s .github/workflows/.bazelrc.ci .bazelrc.ci
bazel test --config rbe //...