tiny_httpd/.github/workflows/main.yml
2021-06-01 10:53:33 -04:00

23 lines
737 B
YAML

name: build
on: [push, pull_request]
jobs:
run:
name: Build
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [macos-latest, ubuntu-latest, windows-latest]
ocaml-compiler: [ '4.04.0', '4.11.0' ]
steps:
- uses: actions/checkout@master
- uses: avsm/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- run: opam pin -n .
# dune 2.8 breaks the inline tests… because of warn-error 😱. So we use an
# older version
- run: opam pin dune 1.11.0 -y -n
- run: opam depext -yt tiny_httpd tiny_httpd_camlzip
- run: opam install -t . --deps-only
- run: opam exec -- dune build
- run: opam exec -- dune runtest