-
Notifications
You must be signed in to change notification settings - Fork 4
32 lines (30 loc) · 912 Bytes
/
ci.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
name: CI
# Trigger the workflow on push or pull request, but only for the master branch
on:
pull_request:
push:
branches: [master]
jobs:
build:
strategy:
matrix:
ghc: ['927', '945'] # Not all dependencies support 9.6.1 yet
os: ['ubuntu-latest', 'macos-latest']
runs-on: ${{ matrix.os }}
name: Build with GHC ${{ matrix.ghc }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- uses: cachix/cachix-action@v12
with:
name: halide-haskell
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build
run: |
nix build \
--accept-flake-config \
--print-build-logs \
.#ghc${{ matrix.ghc }}.halide-haskell
- name: Examples & Tutorials
run: |
nix build --accept-flake-config --print-build-logs .#ghc${{ matrix.ghc }}.halide-all