Force 3.15.0 due to bugs #45
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
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' | |