-
Notifications
You must be signed in to change notification settings - Fork 122
41 lines (33 loc) · 984 Bytes
/
mac.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
name: Build and test on Mac
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy-owl:
name: Install Owl
runs-on: macos-latest
steps:
- uses: actions/checkout@main
- name: Use OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: '5.1'
# opam-local-packages: |
# *.opam
dune-cache: true
allow-prerelease-opam: true
- name: Deps
# git build-essential wget unzip aspcud m4 pkg-config libshp-dev libopenblas-dev liblapacke-dev
run: brew install aspcud openblas
- name: OCaml Deps
run: opam install ocaml-compiler-libs alcotest conf-openblas ctypes dune-configurator stdio npy
- name: Compile Owl, install
run: opam exec -- dune build @install
- name: Run tests
run: |
opam install owl-base
opam exec -- dune runtest -j 1 --no-buffer -p owl