Merge pull request #241 from fichtner/freebsd #156
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: Linux | |
on: [push, pull_request] | |
jobs: | |
alpine: | |
strategy: | |
matrix: | |
compiler: [clang, gcc] | |
runs-on: ubuntu-latest | |
container: alpine:latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Build | |
env: | |
CC: ${{ matrix.compiler }} | |
run: | | |
test/test_build.sh alpine | |
debian: | |
strategy: | |
matrix: | |
compiler: [clang, gcc] | |
runs-on: ubuntu-latest | |
container: debian:stable | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Build | |
env: | |
CC: ${{ matrix.compiler }} | |
run: | | |
test/test_build.sh debian | |
fedora: | |
strategy: | |
matrix: | |
compiler: [clang, gcc] | |
runs-on: ubuntu-latest | |
container: fedora:latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Build | |
env: | |
CC: ${{ matrix.compiler }} | |
run: | | |
test/test_build.sh fedora | |
opensuse: | |
strategy: | |
matrix: | |
compiler: [clang, gcc] | |
runs-on: ubuntu-latest | |
container: opensuse/leap:latest | |
steps: | |
- name: Install dependencies required by the checkout action | |
run: | | |
zypper --non-interactive refresh | |
zypper --non-interactive install gzip tar | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Build | |
env: | |
CC: ${{ matrix.compiler }} | |
run: | | |
test/test_build.sh opensuse | |
ubuntu: | |
strategy: | |
matrix: | |
ubuntu_version: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04] | |
compiler: [clang, gcc] | |
runs-on: ${{ matrix.ubuntu_version }} | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Build | |
env: | |
CC: ${{ matrix.compiler }} | |
run: | | |
test/test_build.sh ubuntu |