Skip to content

Try actions update. #91

Try actions update.

Try actions update. #91

Workflow file for this run

name: C CI
on:
pull_request:
workflow_dispatch:
push:
branches-ignore:
- '_**'
- '**wip**'
jobs:
build-ubuntu:
if: ${{ ! startsWith(github.event.head_commit.message, 'WIP') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- run: |
sudo apt install -U --no-install-recommends libcriterion-dev
echo MAKEFLAGS=-j4 >> "$GITHUB_ENV"
- name: Test
run: make test
- name: Test -O3
run: make clean && make test XCFLAGS='-O3 -g0'
build-macos:
if: ${{ ! startsWith(github.event.head_commit.message, 'WIP') }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v5
- run: |
brew update
brew install criterion coreutils
echo CPATH="/opt/homebrew/include:$CPATH" >> "$GITHUB_ENV"
echo LIBRARY_PATH="/opt/homebrew/lib:$LIBRARY_PATH" >> "$GITHUB_ENV"
echo DYLD_LIBRARY_PATH=. >> "$GITHUB_ENV"
echo MAKEFLAGS=-j3 >> "$GITHUB_ENV"
- name: Test
run: make test CC=clang
- name: Test -O3
run: make clean && make test CC=clang XCFLAGS='-O3 -g0'