C/C++ CI: use GCC 11 for the ubuntu-latest build

This commit is contained in:
SChernykh 2021-11-08 16:03:43 +01:00
parent e44baad73c
commit dbab191bfc

View file

@ -9,15 +9,20 @@ on:
jobs: jobs:
build-ubuntu: build-ubuntu:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.config.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, ubuntu-18.04] config:
- {os: ubuntu-latest, c: gcc-11, cpp: g++-11}
- {os: ubuntu-18.04, c: gcc, cpp: g++}
steps: steps:
- name: Install dependencies - name: Install dependencies
run: sudo apt update && sudo apt install git build-essential cmake libuv1-dev libzmq3-dev libsodium-dev libpgm-dev libnorm-dev libgss-dev run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install -y git build-essential cmake libuv1-dev libzmq3-dev libsodium-dev libpgm-dev libnorm-dev libgss-dev ${{ matrix.config.c }} ${{ matrix.config.cpp }}
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -28,7 +33,7 @@ jobs:
run: | run: |
mkdir build mkdir build
cd build cd build
cmake .. cmake .. -DCMAKE_C_COMPILER=${{ matrix.config.c }} -DCMAKE_CXX_COMPILER=${{ matrix.config.cpp }}
make -j2 make -j2
- name: Build tests - name: Build tests
@ -36,7 +41,7 @@ jobs:
cd tests cd tests
mkdir build mkdir build
cd build cd build
cmake .. cmake .. -DCMAKE_C_COMPILER=${{ matrix.config.c }} -DCMAKE_CXX_COMPILER=${{ matrix.config.cpp }}
make -j2 make -j2
- name: Run tests - name: Run tests
@ -45,7 +50,7 @@ jobs:
- name: Archive binary - name: Archive binary
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: p2pool-${{ matrix.os }} name: p2pool-${{ matrix.config.os }}
path: build/p2pool path: build/p2pool
build-windows-msys2: build-windows-msys2: