-
Notifications
You must be signed in to change notification settings - Fork 33
33 lines (25 loc) · 989 Bytes
/
ci_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
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:
runs-on: [ubuntu-22.04]
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: Build roc with nix
run: nix build github:roc-lang/roc
# the result folder is produced by the previous step
- name: Run all tests
run: nix develop -c sh -c 'export ROC=./result/bin/roc && export EXAMPLES_DIR=./examples/ && ./ci/all_tests.sh'