.github/workflows/build.yml: build with Ubuntu 22.04 as well
This commit is contained in:
parent
d29e1544bf
commit
20310437d0
|
@ -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 \
|
||||||
|
|
Loading…
Reference in New Issue