-
Notifications
You must be signed in to change notification settings - Fork 62
131 lines (121 loc) · 3.97 KB
/
ci.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
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
name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
#gcc12-basic-asan:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: bazel-contrib/setup-bazel@0.8.2
# with:
# bazelisk-cache: true
# bazelisk-version: 1.19.0
# disk-cache: gcc12-basic-asan
# repository-cache: true
# - run: CC=gcc-12 bazel test --config asan ...
#gcc12-basic-tsan:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: bazel-contrib/setup-bazel@0.8.2
# with:
# bazelisk-cache: true
# bazelisk-version: 1.19.0
# disk-cache: gcc12-basic-tsan
# repository-cache: true
# - run: CC=gcc-12 bazel test --config tsan ...
#gcc12-arenastring-asan:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: bazel-contrib/setup-bazel@0.8.2
# with:
# bazelisk-cache: true
# bazelisk-version: 1.19.0
# disk-cache: gcc12-arenastring-asan
# external-cache: true
# repository-cache: true
# - run: CC=gcc-12 bazel test --config arenastring --config asan ...
#gcc12-mutable-donated-string-asan:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: bazel-contrib/setup-bazel@0.8.2
# with:
# bazelisk-cache: true
# bazelisk-version: 1.19.0
# disk-cache: gcc12-mutable-donated-string-asan
# external-cache: true
# repository-cache: true
# - run: CC=gcc-12 bazel test --config mutable-donated-string --config asan ...
#clang14-basic-asan:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: bazel-contrib/setup-bazel@0.8.2
# with:
# bazelisk-cache: true
# bazelisk-version: 1.19.0
# disk-cache: clang14-basic-asan
# repository-cache: true
# - run: CC=clang-14 bazel test --cxxopt=-stdlib=libc++ --linkopt=-stdlib=libc++ --config asan ...
#clang14-basic-tsan:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: bazel-contrib/setup-bazel@0.8.2
# with:
# bazelisk-cache: true
# bazelisk-version: 1.19.0
# disk-cache: clang14-basic-tsan
# repository-cache: true
# - run: CC=clang-14 bazel test --cxxopt=-stdlib=libc++ --linkopt=-stdlib=libc++ --config tsan ...
#clang14-arenastring-asan:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: bazel-contrib/setup-bazel@0.8.2
# with:
# bazelisk-cache: true
# bazelisk-version: 1.19.0
# disk-cache: clang14-arenastring-asan
# repository-cache: true
# - run: CC=clang-14 bazel test --cxxopt=-stdlib=libc++ --linkopt=-stdlib=libc++ --config arenastring --config asan ...
#clang14-mutable-donated-string-asan:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: bazel-contrib/setup-bazel@0.8.2
# with:
# bazelisk-cache: true
# bazelisk-version: 1.19.0
# disk-cache: clang14-mutable-donated-string-asan
# repository-cache: true
# - run: bazel test --action_env=CC=clang-14 --cxxopt=-stdlib=libc++ --linkopt=-stdlib=libc++ --config mutable-donated-string --config asan ...
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('WORKSPACE')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-coverage-${{github.sha}}
restore-keys: |
bazel-disk-coverage-
bazel-disk-
- run: bazel coverage --config ci --combined_report=lcov --instrumentation_filter='src/babylon,-src/babylon/reusable/patch' ...
- run: ls -l bazel-out/_coverage/
- uses: coverallsapp/github-action@v2
with:
github-token: ${{github.token}}
file: bazel-out/_coverage/_coverage_report.dat
format: lcov