Skip to content

Refactor

Refactor #54

Workflow file for this run

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'