Skip to content

Commit b5848da

Browse files
committed
Use Ubuntu 20.04 for coverage
1 parent 251d286 commit b5848da

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/actions/nimbus-build-system/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ runs:
8585
pacman -U --noconfirm https://repo.msys2.org/mingw/ucrt64/mingw-w64-ucrt-x86_64-gcc-14.2.0-2-any.pkg.tar.zst https://repo.msys2.org/mingw/ucrt64/mingw-w64-ucrt-x86_64-gcc-libs-14.2.0-2-any.pkg.tar.zst
8686
8787
- name: Install gcc 14 on Linux
88-
# Should be removed when ubuntu-latest is 26.04
89-
if : ${{ inputs.os == 'linux' }}
88+
# We don't want to install gcc 14 for coverage (Ubuntu 20.04)
89+
if : ${{ inputs.os == 'linux' && !inputs.coverage }}
9090
shell: ${{ inputs.shell }} {0}
9191
run: |
9292
# Add GCC-14 to alternatives

.github/workflows/ci-reusable.yml

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
os: ${{ matrix.os }}
4141
shell: ${{ matrix.shell }}
4242
nim_version: ${{ matrix.nim_version }}
43+
coverage: false
4344

4445
## Part 1 Tests ##
4546
- name: Unit tests

.github/workflows/ci.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ jobs:
4848
cache_nonce: ${{ needs.matrix.outputs.cache_nonce }}
4949

5050
coverage:
51-
runs-on: ubuntu-latest
51+
# Force to stick to ubuntu 20.04 for coverage because
52+
# lcov was updated to 2.x version in ubuntu-latest
53+
# and cause a lot of issues.
54+
# See https://github.com/linux-test-project/lcov/issues/238
55+
runs-on: ubuntu-20.04
5256
steps:
5357
- name: Checkout sources
5458
uses: actions/checkout@v4
@@ -61,6 +65,7 @@ jobs:
6165
with:
6266
os: linux
6367
nim_version: ${{ env.nim_version }}
68+
coverage: true
6469

6570
- name: Generate coverage data
6671
run: |

0 commit comments

Comments
 (0)