Removed CVS $Id$ tag. #44
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-2023 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 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++ | |
- label: "Ubuntu 18.04 (Bionic Beaver) with GCC" | |
image: ubuntu:18.04 | |
cc: gcc | |
cxx: g++ | |
- label: "Ubuntu 16.04 (Xenial Xerus) with GCC" | |
image: ubuntu:16.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 35 with Clang" | |
image: fedora:35 | |
cc: clang | |
cxx: clang++ | |
- label: "Fedora 34 with Clang" | |
image: fedora:34 | |
cc: clang | |
cxx: clang++ | |
# ###### Build commands ################################################# | |
name: ${{ matrix.label }} | |
runs-on: ubuntu-latest | |
container: | |
image: ${{ matrix.image }} | |
steps: | |
- uses: actions/checkout@v2 | |
- 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 |