Build using GCC 9 in CI

Checking that we don't regress this later.
Ubuntu doesn't package GCC 8, and we don't support it either,
so that is a good compromise for now.
This commit is contained in:
ISSOtm
2026-04-26 22:12:06 +02:00
committed by Rangi
parent d5ce5329ea
commit 37d39f91f6
2 changed files with 13 additions and 3 deletions
+9 -2
View File
@@ -20,10 +20,14 @@ case "${OS%%-*}" in
pkgs="$pkgs libz-mingw-w64-dev g++-mingw-w64-x86-64-win32"
TOOLSET=
;;
'' | lcov)
g++-9 | lcov)
pkgs="$pkgs libpng-dev pkgconf $TOOLSET"
TOOLSET=
;;
'' | g++ | clang++)
pkgs="$pkgs libpng-dev pkgconf"
TOOLSET=
;;
esac
sudo apt-get update -qq
# shellcheck disable=SC2086 # (This word splitting is intentional.)
@@ -32,10 +36,13 @@ case "${OS%%-*}" in
macos)
pkgs=bison
case $TOOLSET in
'' | lld)
lld)
pkgs="$pkgs $TOOLSET"
TOOLSET=
;;
clang++)
TOOLSET=
;;
esac
# macOS bundles GNU Make 3.81, which doesn't support synced output.
# We leave it as the default in `PATH`, to test that our Makefile works with it.
+4 -1
View File
@@ -40,6 +40,9 @@ jobs:
exclude: # Don't use `g++` on macOS; it's just an alias to `clang++`.
- { os: macos-15-intel, cxx: g++ }
- { os: macos-26, cxx: g++ }
include: # Use `g++-9`, the earliest GCC version we support, on the earliest Ubuntu runner.
- { os: ubuntu-22.04, cxx: g++-9, buildsys: make }
- { os: ubuntu-22.04, cxx: g++-9, buildsys: cmake }
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
@@ -47,7 +50,7 @@ jobs:
uses: actions/checkout@v6
- name: Install deps
run: |
.github/scripts/install_deps.sh ${{ matrix.os }}
.github/scripts/install_deps.sh ${{ matrix.os }} ${{ matrix.cxx }}
- name: Build & install using Make
if: matrix.buildsys == 'make'
run: |