Skip to content

WIP

WIP #50

Workflow file for this run

name: C CI
on:
pull_request:
workflow_dispatch:
push:
branches-ignore:
- '_**'
- '**wip**'
jobs:
build:
if: ${{ ! startsWith(github.event.head_commit.message, 'WIP') }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- if: runner.os == 'Linux'
run: |
sudo apt install --no-install-recommends libcriterion-dev
- if: runner.os == 'macOS'
run: |
brew install criterion
echo CPATH="/opt/homebrew/include:$CPATH" >> "$GITHUB_ENV"
echo LIBRARY_PATH="/opt/homebrew/lib:$LIBRARY_PATH" >> "$GITHUB_ENV"
- run: echo MAKEFLAGS=-j2 >> "$GITHUB_ENV"
- name: Test
run: make test
- name: Test -O3
run: make clean && make test XCFLAGS=-O3
- name: Clang - Test
run: make clean && make test CC=clang
- name: Clang - Test -O3
run: make clean && make test CC=clang XCFLAGS=-O3