Rewrite apt-based CI #105
Workflow file for this run
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
name: Build | |
on: push | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
container: ${{ matrix.container }} | |
name: ${{ matrix.container || matrix.os }}/${{ matrix.packaging }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { os: "ubuntu-latest", container: "debian:bullseye", packaging: "apt", python: "python3" } | |
- { os: "ubuntu-latest", container: "debian:bookworm", packaging: "apt", cmake_options: "-DCMAKE_CXX_STANDARD=17", python: "python3" } | |
- { os: "ubuntu-latest", container: "ubuntu:focal", packaging: "apt", python: "python3" } | |
- { os: "ubuntu-latest", container: "ubuntu:jammy", packaging: "apt", cmake_options: "-DCMAKE_CXX_STANDARD=17", python: "python3" } | |
# - name: "macOS 11 (Big Sur) + Homebrew" | |
# os: macos-11 | |
# ci_type: brew | |
env: | |
WORKSPACE: "${{ github.workspace }}" | |
CMAKE_OPTIONS: "${{ matrix.cmake_options }}" | |
steps: | |
- name: Provision (Debian, Ubuntu) | |
# Install Python and Git. macOS workers already have this, however for | |
# Linux we are running in minimal containers. | |
run: | | |
apt-get update | |
DEBIAN_FRONTEND=noninteractive apt-get install -y git python3 | |
if: ${{ contains(matrix.packaging, 'apt') }} | |
- name: Checkout latest revision | |
uses: actions/checkout@v4 | |
- name: Set-up (${{ matrix.packaging }}) | |
run: ${{ matrix.python }} .ci/build/${{ matrix.packaging }}.py | |
- name: Build | |
run: ${{ matrix.python }} ./.ci/build/build.py | |
# - name: Run tests | |
# run: ./.ci/${{ matrix.ci_type}}/post_build |