-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 libshp-dev libopenblas-dev liblapacke-dev | ||
|
||
- 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 |