|
1 | 1 | # Copyright 2020-2021 Peter Dimov |
2 | 2 | # Copyright 2021 Andrey Semashev |
3 | 3 | # Copyright 2021 Alexander Grund |
4 | | -# Copyright 2022 James E. King III |
| 4 | +# Copyright 2022-2025 James E. King III |
5 | 5 | # |
6 | 6 | # Distributed under the Boost Software License, Version 1.0. |
7 | 7 | # (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt) |
|
18 | 18 | - feature/** |
19 | 19 | - fix/** |
20 | 20 | - pr/** |
| 21 | + paths-ignore: |
| 22 | + - LICENSE |
| 23 | + - meta/** |
| 24 | + - README.md |
21 | 25 |
|
22 | 26 | concurrency: |
23 | 27 | group: ${{format('{0}:{1}', github.repository, github.ref)}} |
24 | 28 | cancel-in-progress: true |
25 | 29 |
|
26 | 30 | env: |
27 | | - ASAN_OPTIONS: allocator_may_return_null=1 |
28 | 31 | GIT_FETCH_JOBS: 8 |
29 | 32 | NET_RETRY_COUNT: 5 |
30 | 33 | B2_CI_VERSION: 1 |
31 | 34 | B2_VARIANT: debug,release |
32 | 35 | B2_LINK: shared,static |
33 | 36 | LCOV_BRANCH_COVERAGE: 1 |
34 | | - CODECOV_NAME: Github Actions |
35 | 37 |
|
36 | 38 | jobs: |
37 | 39 | posix: |
@@ -132,7 +134,7 @@ jobs: |
132 | 134 | for i in {1..${NET_RETRY_COUNT:-3}}; do sudo -E add-apt-repository -y ppa:git-core/ppa && break || sleep 10; done |
133 | 135 | apt-get -o Acquire::Retries=$NET_RETRY_COUNT update |
134 | 136 | osver=$(lsb_release -sr | cut -f1 -d.) |
135 | | - pkgs="g++ git" |
| 137 | + pkgs="g++ git xz-utils" |
136 | 138 | # Ubuntu 22+ has only Python 3 in the repos |
137 | 139 | if [ -n "$osver" ] && [ "$osver" -ge "22" ]; then |
138 | 140 | pkgs+=" python-is-python3 libpython3-dev" |
@@ -180,8 +182,8 @@ jobs: |
180 | 182 | - name: Install packages |
181 | 183 | if: startsWith(matrix.os, 'ubuntu') |
182 | 184 | run: | |
183 | | - SOURCE_KEYS=(${{join(matrix.source_keys, ' ')}}) |
184 | | - SOURCES=(${{join(matrix.sources, ' ')}}) |
| 185 | + SOURCE_KEYS=("${{join(matrix.source_keys, '" "')}}") |
| 186 | + SOURCES=("${{join(matrix.sources, '" "')}}") |
185 | 187 | # Add this by default |
186 | 188 | SOURCE_KEYS+=('http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x1E9377A2BA9EF27F') |
187 | 189 | SOURCES+=(ppa:ubuntu-toolchain-r/test) |
@@ -247,21 +249,11 @@ jobs: |
247 | 249 | if: '!matrix.coverity' |
248 | 250 | run: ci/build.sh |
249 | 251 |
|
250 | | - - name: Collect coverage |
| 252 | + - name: Upload coverage |
251 | 253 | if: matrix.coverage |
252 | 254 | run: ci/codecov.sh "upload" |
253 | 255 | env: |
254 | | - BOOST_CI_CODECOV_IO_UPLOAD: skip |
255 | | - |
256 | | - - name: Upload coverage |
257 | | - if: matrix.coverage |
258 | | - uses: codecov/codecov-action@v4 |
259 | | - with: |
260 | | - disable_search: true |
261 | | - file: coverage.info |
262 | | - name: Github Actions |
263 | | - token: ${{secrets.CODECOV_TOKEN}} |
264 | | - verbose: true |
| 256 | + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
265 | 257 |
|
266 | 258 | - name: Run coverity |
267 | 259 | if: matrix.coverity && github.event_name == 'push' && (github.ref_name == 'develop' || github.ref_name == 'master') |
@@ -325,11 +317,12 @@ jobs: |
325 | 317 |
|
326 | 318 | - name: Upload coverage |
327 | 319 | if: matrix.coverage |
328 | | - uses: codecov/codecov-action@v4 |
| 320 | + uses: codecov/codecov-action@v5 |
329 | 321 | with: |
330 | 322 | disable_search: true |
331 | | - file: __out/cobertura.xml |
332 | | - name: Github Actions |
| 323 | + fail_ci_if_error: true |
| 324 | + files: __out/cobertura.xml |
| 325 | + name: github-actions |
333 | 326 | token: ${{secrets.CODECOV_TOKEN}} |
334 | 327 | verbose: true |
335 | 328 |
|
|
0 commit comments