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