Skip to content

Commit

Permalink
Add .github/workflows/main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
smondet committed Oct 17, 2021
1 parent edb3711 commit 0b10d36
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: build
on: [push, pull_request]
jobs:
run:
name: Build
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
#operating-system: [ubuntu-latest]
operating-system: [macos-latest, ubuntu-latest] #, windows-latest]
ocaml-compiler: [ '4.09.1' , '4.10.1', '4.11.1', '4.12.1' ]
steps:
- uses: actions/checkout@v2
- name: Set up OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- run: opam install . --deps-only
# Dependencies for the examples/tests:
- run: opam install uri ocamlformat
- run: opam exec -- dune build @check
- run: opam exec -- dune build @fmt

0 comments on commit 0b10d36

Please sign in to comment.