-
Notifications
You must be signed in to change notification settings - Fork 17
36 lines (30 loc) · 1.09 KB
/
tests_nix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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'