-
Notifications
You must be signed in to change notification settings - Fork 5
64 lines (51 loc) · 1.51 KB
/
examples.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Examples
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
linux:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
ocaml-compiler: ["5.0.0"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: avsm/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- name: Install deps
run: curl https://futhark-lang.org/releases/futhark-nightly-linux-x86_64.tar.xz | tar xJ
- name: Set Opam env
run: opam env | tr '\n' ' ' >> $GITHUB_ENV
- name: Add Opam switch to PATH
run: opam var bin >> $GITHUB_PATH
- run: opam install dune ctypes-foreign
- name: Run examples
run: PATH="$PATH:$PWD/futhark-nightly-linux-x86_64/bin" opam exec -- make test
macos:
strategy:
fail-fast: true
matrix:
os: [macos-latest]
ocaml-compiler: ["5.0.0"]
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: avsm/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- name: Install deps
run: brew update && brew install futhark libffi
- name: Set Opam env
run: opam env | tr '\n' ' ' >> $GITHUB_ENV
- name: Add Opam switch to PATH
run: opam var bin >> $GITHUB_PATH
- run: opam install dune ctypes-foreign
- name: Run examples
run: opam exec -- make test