Fix syntax error #18
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: Install dependencies | |
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) | |
- name: Lint, test, and build | |
run: | | |
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: | | |
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' | |