tiny_httpd/.github/workflows/main.yml
Kate ae0162beda
Make CI closer to what users would do
This should detect issues such as the ones encountered in https://github.com/ocaml/opam-repository/pull/20345 sooner
2022-01-01 13:37:21 +00:00

22 lines
698 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 .
- run: opam install tiny_httpd
- run: opam install tiny_httpd_camlzip
- run: opam reinstall -t tiny_httpd
- run: opam reinstall -t tiny_httpd_camlzip
- run: opam remove tiny_httpd tiny_httpd_camlzip
- run: opam exec -- dune build @install @runtest