Debian 12 build fix. #82
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GitHub Actions Scripts | |
# Copyright (C) 2021-2024 by Thomas Dreibholz | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU General Public License for more details. | |
# | |
# You should have received a copy of the GNU General Public License | |
# along with this program. If not, see <http://www.gnu.org/licenses/>. | |
# | |
# Contact: dreibh@simula.no | |
name: Linux CI Tests | |
on: | |
push: | |
branches: | |
- master | |
- dreibh/github-actions | |
jobs: | |
build_job: | |
# ###### Build matrix ################################################### | |
strategy: | |
matrix: | |
include: | |
# ====== Ubuntu Linux ============================================= | |
- label: "Ubuntu 24.04 (Noble Numbat) with GCC" | |
image: ubuntu:24.04 | |
cc: gcc | |
cxx: g++ | |
- label: "Ubuntu 22.04 (Jammy Jellyfish) with GCC" | |
image: ubuntu:22.04 | |
cc: gcc | |
cxx: g++ | |
- label: "Ubuntu 20.04 (Focal Fossa) with GCC" | |
image: ubuntu:20.04 | |
cc: gcc | |
cxx: g++ | |
# ====== Debian Linux ============================================= | |
- label: "Debian 12 (Bookworm) with GCC" | |
image: debian:bookworm | |
cc: gcc | |
cxx: g++ | |
- label: "Debian 11 (Bullseye) with GCC" | |
image: debian:bullseye | |
cc: gcc | |
cxx: g++ | |
- label: "Debian 10 (Buster) with GCC" | |
image: debian:buster | |
cc: gcc | |
cxx: g++ | |
# ====== Fedora Linux ============================================= | |
- label: "Fedora 40 with Clang" | |
image: fedora:40 | |
cc: clang | |
cxx: clang++ | |
# ###### Build commands ################################################# | |
name: ${{ matrix.label }} | |
runs-on: ubuntu-latest | |
container: | |
image: ${{ matrix.image }} | |
steps: | |
# NOTE: actions/checkout@v4 does not work for old Ubuntu 18.04! | |
- uses: actions/checkout@v4 | |
- name: Build | |
shell: bash | |
run: | | |
CC=${{ matrix.cc }} CXX=${{ matrix.cxx }} ARCH= ci/ci-setup compile | |
CC=${{ matrix.cc }} CXX=${{ matrix.cxx }} ARCH= ci/ci-install compile | |
CC=${{ matrix.cc }} CXX=${{ matrix.cxx }} ARCH= ci/ci-build compile |