tiny_httpd/.github/workflows/main.yml
Simon Cruanes 06ef1fc787 ci stuff
2021-02-01 11:15:49 -05:00

22 lines
687 B
YAML

name: build
on: [push]
jobs:
run:
name: Build
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [macos-latest, ubuntu-latest, windows-latest]
ocaml-version: [ '4.05.0' ]
steps:
- uses: actions/checkout@master
- uses: avsm/setup-ocaml@master
with:
ocaml-version: ${{ matrix.ocaml-version }}
- run: opam pin -n .
# more recent dune breaks the inline tests… because of warn-error 😱
- run: opam pin dune 2.7.1 -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