Skip to content

Commit

Permalink
CI: simplify compiler selection and add gcc13
Browse files Browse the repository at this point in the history
Allows more testing with future compilers.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Jan 5, 2024
1 parent 468ecea commit 9f5b08b
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,22 @@ jobs:
build-linux:
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-20.04]
include:
- os: ubuntu-22.04
cc: gcc-11
cxx: g++-11
- os: ubuntu-20.04
cc: gcc-10
cxx: g++-10
cc: ['10', '11', '13']
os: [ubuntu-20.04]

runs-on: ${{ matrix.os }}

env:
CC: ccache ${{ matrix.cc }}
CXX: ccache ${{ matrix.cxx }}
CC: ccache gcc-${{ matrix.cc }}
CXX: ccache g++-${{ matrix.cc }}

steps:
- id: checkout
uses: actions/checkout@v4
- id: setup-gcc
uses: egor-tensin/setup-gcc@v1
with:
version: ${{matrix.cxx}}
- id: cache-ccache
uses: hendrikmuhs/ccache-action@v1
with:
Expand All @@ -59,7 +57,6 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
${{ matrix.cxx }} ${{matrix.cc }} \
libfmt-dev \
libgtest-dev \
libpcre2-dev \
Expand Down

0 comments on commit 9f5b08b

Please sign in to comment.