Revamp register of services #246
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
- next | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
ocaml-version: | |
- 4.14.1 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Retrieve opam cache | |
uses: actions/cache@v2 | |
id: cache-opam | |
with: | |
path: ~/.opam | |
key: v1-${{ runner.os }}-opam-${{ matrix.ocaml-version }}-${{ hashFiles('ez_api.opam') }} | |
restore-keys: | | |
v1-${{ runner.os }}-opam-${{ matrix.ocaml-version }}- | |
- name: Use OCaml ${{ matrix.ocaml-version }} | |
uses: avsm/setup-ocaml@v1 | |
with: | |
ocaml-version: ${{ matrix.ocaml-version }} | |
- name: Install system packages required by opam packages | |
run: opam depext --yes --update geoip ocurl tls | |
- name: Install opam packages | |
if: steps.cache-opam.outputs.cache-hit != 'true' | |
run: | | |
opam pin add websocket-httpaf.~dev https://github.com/anmonteiro/websocket-httpaf.git | |
opam pin add websocket-httpaf-lwt.~dev https://github.com/anmonteiro/websocket-httpaf.git | |
opam install $(opam show -f depopts: . | sed -e 's/{.*}//g' -e 's/"//g') | |
opam install . --deps-only --with-doc --with-test | |
- name: Check the consistency of installed opam packages | |
if: steps.cache-opam.outputs.cache-hit == 'true' | |
run: opam upgrade --fixup | |
- name: Run build | |
run: opam exec -- make build |