srctree

Robin Linden parent a000eee7 da767ceb
ci: Switch the gcc coverage job over to being a matrix job

inlinesplit
.github/workflows/ci.yaml added: 16, removed: 8, total 8
@@ -101,9 +101,17 @@ jobs:
echo "<html><body><h1>Example</h1><p>This is an example page.</p></body></html>" >example.html
bazel run browser:tui file://$(pwd)/example.html ${{ matrix.bazel }}
 
linux-gcc-13-coverage:
coverage:
name: linux-${{ matrix.compiler }}-${{ matrix.version }}-coverage
runs-on: ubuntu-22.04
timeout-minutes: 30
 
strategy:
fail-fast: false
matrix:
include:
- compiler: gcc
version: 13
steps:
- uses: actions/checkout@v4
with:
@@ -111,18 +119,18 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.cache/bazel
key: coverage13-${{ hashFiles('.bazelversion', 'WORKSPACE', 'third_party/**') }}
restore-keys: coverage13-
key: coverage-${{ matrix.compiler }}-${{ matrix.version }}-${{ hashFiles('.bazelversion', 'WORKSPACE', 'third_party/**') }}
restore-keys: coverage-${{ matrix.compiler }}-${{ matrix.version }}-
- run: sudo add-apt-repository ppa:ubuntu-toolchain-r/test
- name: Install
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends libgl-dev lcov gcc-13 g++-13
sudo apt-get install --no-install-recommends libgl-dev lcov gcc-${{ matrix.version }} g++-${{ matrix.version }}
- name: Setup
run: |
echo "CC=gcc-13" >> $GITHUB_ENV
echo "CXX=g++-13" >> $GITHUB_ENV
echo "GCOV=gcov-13" >> $GITHUB_ENV
echo "CC=gcc-${{ matrix.version }}" >> $GITHUB_ENV
echo "CXX=g++-${{ matrix.version }}" >> $GITHUB_ENV
echo "GCOV=gcov-${{ matrix.version }}" >> $GITHUB_ENV
- name: Coverage
run: bazel coverage ...
- name: Summary