mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-08 10:59:36 +00:00
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:
@@ -20,10 +20,14 @@ case "${OS%%-*}" in
|
|||||||
pkgs="$pkgs libz-mingw-w64-dev g++-mingw-w64-x86-64-win32"
|
pkgs="$pkgs libz-mingw-w64-dev g++-mingw-w64-x86-64-win32"
|
||||||
TOOLSET=
|
TOOLSET=
|
||||||
;;
|
;;
|
||||||
'' | lcov)
|
g++-9 | lcov)
|
||||||
pkgs="$pkgs libpng-dev pkgconf $TOOLSET"
|
pkgs="$pkgs libpng-dev pkgconf $TOOLSET"
|
||||||
TOOLSET=
|
TOOLSET=
|
||||||
;;
|
;;
|
||||||
|
'' | g++ | clang++)
|
||||||
|
pkgs="$pkgs libpng-dev pkgconf"
|
||||||
|
TOOLSET=
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
sudo apt-get update -qq
|
sudo apt-get update -qq
|
||||||
# shellcheck disable=SC2086 # (This word splitting is intentional.)
|
# shellcheck disable=SC2086 # (This word splitting is intentional.)
|
||||||
@@ -32,10 +36,13 @@ case "${OS%%-*}" in
|
|||||||
macos)
|
macos)
|
||||||
pkgs=bison
|
pkgs=bison
|
||||||
case $TOOLSET in
|
case $TOOLSET in
|
||||||
'' | lld)
|
lld)
|
||||||
pkgs="$pkgs $TOOLSET"
|
pkgs="$pkgs $TOOLSET"
|
||||||
TOOLSET=
|
TOOLSET=
|
||||||
;;
|
;;
|
||||||
|
clang++)
|
||||||
|
TOOLSET=
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
# macOS bundles GNU Make 3.81, which doesn't support synced output.
|
# 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.
|
# We leave it as the default in `PATH`, to test that our Makefile works with it.
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ jobs:
|
|||||||
exclude: # Don't use `g++` on macOS; it's just an alias to `clang++`.
|
exclude: # Don't use `g++` on macOS; it's just an alias to `clang++`.
|
||||||
- { os: macos-15-intel, cxx: g++ }
|
- { os: macos-15-intel, cxx: g++ }
|
||||||
- { os: macos-26, 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
|
fail-fast: false
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
@@ -47,7 +50,7 @@ jobs:
|
|||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
run: |
|
run: |
|
||||||
.github/scripts/install_deps.sh ${{ matrix.os }}
|
.github/scripts/install_deps.sh ${{ matrix.os }} ${{ matrix.cxx }}
|
||||||
- name: Build & install using Make
|
- name: Build & install using Make
|
||||||
if: matrix.buildsys == 'make'
|
if: matrix.buildsys == 'make'
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user