-
Notifications
You must be signed in to change notification settings - Fork 124
51 lines (42 loc) · 1.42 KB
/
main.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
name: Build and test on Ubuntu
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy-owl:
name: Install Owl and build doc
runs-on: ubuntu-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
# run: sudo apt-get install git build-essential wget unzip aspcud m4 pkg-config libshp-dev libopenblas-dev liblapacke-dev
run: sudo apt-get 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 odoc
- name: Compile Owl, install, and run test
run: |
opam exec -- dune build @install
opam exec -- dune runtest -j 1 --no-buffer -p owl
- name: Build doc
run: |
opam exec -- dune build @doc
cat docs/mathjax.js docs/highlight.pack.js >> _build/default/_doc/_html/highlight.pack.js
cp -r _build/default/_doc/_html/* docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
destination_dir: .