Skip to content

githib workflow

githib workflow #11

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
build:
# https://docs.github.com/en/actions/writing-workflows/choosing-where-your-workflow-runs/choosing-the-runner-for-a-job
- os: ubuntu-latest
- os: ubuntu-latest
image: ubuntu:20.04
- os: ubuntu-latest
image: ubuntu:22.04
- os: ubuntu-latest
image: ubuntu:24.04
- os: ubuntu-latest
image: fedora:40
- os: ubuntu-latest
image: fedora:41
- os: ubuntu-latest
image: fedora:42
- os: ubuntu-latest
image: debian:11
- os: ubuntu-latest
image: debian:12
- os: macos-13
- os: macos-14
- os: macos-15
runs-on: ${{ matrix.build.os }}
container: ${{ matrix.build.image }}
steps:
# https://github.com/actions/checkout
- name: Checkout repo
uses: actions/checkout@v4
- name: Dependencies (ubuntu, debian)
if: ${{ startsWith(matrix.build.image, 'ubuntu') || startsWith(matrix.build.image, 'debian') }}
run: |
apt-get update
apt-get install -y build-essential
- name: Dependencies (fedora)
if: ${{ startsWith(matrix.build.image, 'fedora') }}
run: |
dnf group install development-tools c-development
- name: Build
run: make
- name: Test
run: make test