-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.11 KB
/
ci.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
name: OCaml CI
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
with:
submodules: recursive
lfs: true
- name: Setup ocaml
uses: avsm/setup-ocaml@v2
with:
ocaml-compiler: '4.14.0'
- name: Check compliance
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev
opam install . --deps-only --with-test --with-doc
opam install ocamlformat
eval $(opam env)
make lint
make test
make
- name: Docker login
uses: azure/docker-login@v1
with:
login-server: cr.kruhlmann.dev
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
if: github.ref == 'refs/heads/master'
- name: Publish documentation
run: |
eval $(opam env)
make docs
docker build -t cr.kruhlmann.dev/aoecenter/docs/relic-sdk:latest -f doc/Dockerfile .
docker push cr.kruhlmann.dev/aoecenter/docs/relic-sdk
if: github.ref == 'refs/heads/master'