diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 734053a..94420e6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,13 +5,15 @@ jobs: runs-on: ${{ matrix.operating-system }} strategy: matrix: - operating-system: [ubuntu-latest, macos-latest] - ocaml-version: ['4.09.0'] + operating-system: [ubuntu-latest] + ocaml-version: ['5.0'] steps: - - uses: actions/checkout@v1 - - uses: avsm/setup-ocaml@master + - uses: actions/checkout@v3 + - uses: ocaml/setup-ocaml@v2 with: ocaml-version: ${{ matrix.ocaml-version }} - - run: opam pin add -n . - - run: opam depext -yt frei0r - - run: opam install -t . + - run: opam install . --deps-only --with-test + - run: opam exec -- dune build + - run: opam exec -- dune runtest + - name: Deploy odoc to GitHub Pages + uses: ocaml/setup-ocaml/deploy-doc@v2