Updated CI configuration #1
This file contains hidden or 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-2026 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: [email protected] | |
| name: Debian Linux CI Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| - dreibh/github-actions | |
| jobs: | |
| # ######################################################################### | |
| # #### Build from Sources #### | |
| # ######################################################################### | |
| Build: | |
| # ###### Build matrix ################################################### | |
| strategy: | |
| matrix: | |
| include: | |
| # ====== Debian Linux ============================================= | |
| - label: "Debian 13 (Trixie) with GCC" | |
| image: debian:trixie | |
| cc: gcc | |
| cxx: g++ | |
| - label: "Debian 12 (Bookworm) with GCC" | |
| image: debian:bookworm | |
| cc: gcc | |
| cxx: g++ | |
| # ###### Build commands ################################################# | |
| name: ${{ matrix.label }} | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ${{ matrix.image }} | |
| steps: | |
| # NOTE: actions/checkout@v6 does not work for old Ubuntu 18.04! | |
| - uses: actions/checkout@v6 | |
| - 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 | |
| # ######################################################################### | |
| # #### Multi-Architecture Builds #### | |
| # ######################################################################### | |
| Architectures: | |
| # ###### Build matrix ################################################### | |
| strategy: | |
| matrix: | |
| include: | |
| # ====== Debian Linux ============================================= | |
| - label: "Debian 13 (Trixie) with GCC/i386" | |
| arch: i386 | |
| distro: trixie | |
| cc: gcc | |
| cxx: g++ | |
| - label: "Debian 13 (Trixie) with Clang/ARMv7" | |
| arch: arm32v7 | |
| distro: trixie | |
| cc: clang | |
| cxx: clang++ | |
| # ###### Build commands ################################################# | |
| name: ${{ matrix.label }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| # NOTE: dreibh/run-on-arch-action provides the upstream | |
| # uraimo/run-on-arch-action action, with additional dockerfiles | |
| # needed for the builds here! | |
| - uses: dreibh/run-on-arch-action@dreibh/tests | |
| name: Build | |
| id: build | |
| with: | |
| arch: ${{ matrix.arch }} | |
| distro: ${{ matrix.distro }} | |
| run: | | |
| CC=${{ matrix.cc }} CXX=${{ matrix.cxx }} ci/ci-setup compile | |
| CC=${{ matrix.cc }} CXX=${{ matrix.cxx }} ci/ci-install compile | |
| CC=${{ matrix.cc }} CXX=${{ matrix.cxx }} ci/ci-build compile | |
| # ######################################################################### | |
| # #### Build Packages #### | |
| # ######################################################################### | |
| Package: | |
| name: Debian Packaging | |
| runs-on: ubuntu-latest | |
| container: | |
| image: debian:unstable | |
| options: --privileged | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Packaging | |
| shell: bash | |
| run: | | |
| CC=gcc CXX=g++ OS=debian DIST=unstable ARCH= ci/ci-setup package | |
| CC=gcc CXX=g++ OS=debian DIST=unstable ARCH= ci/ci-install package | |
| CC=gcc CXX=g++ OS=debian DIST=unstable ARCH= ci/ci-build package | |
| # ci/ci-test <- Not running on Ubuntu! |