Skip to content

test on macos too

test on macos too #56

Workflow file for this run

on:
pull_request:
workflow_dispatch:
# this cancels workflows currently in progress if you start a new one
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
# macos-11 uses x86-64 machine, macos-14 uses aarch64
os: [ macos-11, macos-14, ubuntu-22.04 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
# install nix
- uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v12
with:
name: enigmaticsunrise
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: print architecture
run: uname -m
# the result folder is produced by the previous step
- name: Run all tests
run: nix develop -c sh -c 'export ROC=roc && ./ci_scripts/all_tests.sh'