.github/workflows/build.yml: build with Ubuntu 22.04 as well

This commit is contained in:
Max Kellermann 2022-07-13 12:35:25 +02:00
parent d29e1544bf
commit 20310437d0
1 changed files with 19 additions and 5 deletions

View File

@ -28,22 +28,36 @@ on:
jobs:
build-linux:
runs-on: ubuntu-20.04
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
runs-on: ${{ matrix.os }}
env:
CC: 'ccache gcc-10'
CXX: 'ccache g++-10'
CC: ccache ${{ matrix.cc }}
CXX: ccache ${{ matrix.cxx }}
steps:
- id: checkout
uses: actions/checkout@v3
- id: cache-ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: linux
key: ${{ matrix.os }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
g++-10 libfmt-dev libboost-dev \
${{ matrix.cxx }} ${{matrix.cc }} \
libfmt-dev libboost-dev \
libgtest-dev \
libpcre2-dev \
libsystemd-dev libdbus-1-dev \