File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Install on Mac
2+
3+ on :
4+ - pull_request
5+ - push
6+
7+ jobs :
8+ build :
9+ strategy :
10+ fail-fast : false
11+ matrix :
12+ os :
13+ - macos-latest
14+ ocaml-compiler :
15+ - " 5.1"
16+ # - "4.14"
17+
18+ runs-on : ${{ matrix.os }}
19+
20+ steps :
21+ - name : Checkout code
22+ uses : actions/checkout@v2
23+
24+ - name : Use OCaml ${{ matrix.ocaml-compiler }}
25+ uses : ocaml/setup-ocaml@v3
26+ with :
27+ ocaml-compiler : ${{ matrix.ocaml-compiler }}
28+ opam-local-packages : |
29+ *.opam
30+ dune-cache : true
31+ allow-prerelease-opam : true
32+
33+ - name : macos fix
34+ run : |
35+ brew update
36+ brew upgrade
37+ brew install pkgconf
38+ # work around https://github.com/actions/runner-images/issues/10984
39+
40+ - name : Owl Deps
41+ run : brew install aspcud libshp-dev libopenblas-dev liblapacke-dev
42+
43+ - name : Initialize OPAM
44+ run : opam init --disable-sandboxing --yes
45+
46+ - name : Create and Set OPAM Switch
47+ run : |
48+ opam switch create owl-switch 5.1.0
49+ eval $(opam env) # Load the new switch
50+
51+ - name : Clone owl
52+ run : git clone https://github.com/owlbarn/owl.git /tmp/owl
53+
54+ - name : Owl OCaml Deps
55+ run : |
56+ cd /tmp/owl
57+ opam install ocaml-compiler-libs alcotest conf-openblas ctypes dune-configurator stdio npy odoc
58+
59+ - name : Install owl
60+ run : |
61+ cd /tmp/owl
62+ opam exec -- dune build @install
63+ eval $(opam env)
64+
65+ - name : Install owl-plplot deps
66+ run : opam install plplot # owl # install owl is a temp hack to the error in finding the installed version
67+
68+
69+ - name : Install owl-plplot
70+ run : opam exec -- dune build @install
71+
72+ - name : Run tests
73+ run : opam exec -- dune build
74+ working-directory : examples
75+
Original file line number Diff line number Diff line change 1- name : Install and Compile
1+ name : Install on Ubuntu
22
33on :
44 - pull_request
1111 matrix :
1212 os :
1313 - ubuntu-latest
14- - macos-latest
1514 ocaml-compiler :
16- # - 5
17- - " 5.1"
15+ - " 5.2"
1816 - " 4.14"
1917
2018 runs-on : ${{ matrix.os }}
You can’t perform that action at this time.
0 commit comments