Skip to content

Remove all macOs references. #46

Remove all macOs references.

Remove all macOs references. #46

Workflow file for this run

name: Build and Test on Linux Mac and Windows
on:
push:
branches: [ master ]
tags: "v*"
env:
BUILD_TYPE: Debug
jobs:
build:
name: Test on ${{ matrix.config.os }} with ${{ matrix.config.cc }}
runs-on: ${{ matrix.config.os }}
env:
CC: ${{ matrix.config.cc }}
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-24.04, cc: "gcc", cxx: "g++"}
- {os: ubuntu-24.04, cc: "clang", cxx: "clang++"}
- {os: windows-latest, cc: "cl", cxx: "cl"}
steps:
- uses: actions/checkout@v6
- name: Prints
shell: bash
run: |
echo ${{ matrix.config.cc }}
echo ${{ matrix.config.os }}
${{ matrix.config.cc }} --version 2>&1 || ${{ matrix.config.cc }} 2>&1 || true
- name: Info
run: echo ${{ github.ref }}
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure
musl:
name: Test on Alpine Linux (musl)
runs-on: ubuntu-24.04
container: alpine:latest
timeout-minutes: 5
steps:
- name: Install dependencies
run: apk add --no-cache git cmake g++ make linux-headers
- uses: actions/checkout@v6
- name: Prints
run: g++ --version
- name: Configure CMake
run: cmake -B build -DCMAKE_BUILD_TYPE=Debug
- name: Build
run: cmake --build build
- name: Test
working-directory: build
run: ctest --output-on-failure