Skip to content

Commit

Permalink
ci: test OCaml 4.08, 4.14, and 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
favonia committed Mar 30, 2022
1 parent 6261e9e commit 73cfeb9
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/ocaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,30 @@ on:
pull_request:
jobs:
run:
strategy:
matrix:
ocaml-compiler:
- "4.08"
- "4.14"
- "ocaml-variants.5.0.0+trunk"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: "4.14"
- run: opam pin . --with-doc --with-test --yes
ocaml-compiler: ${{ matrix.ocaml-compiler }}

- run: opam pin . --with-test --yes
if: ${{ matrix.ocaml-compiler != 'ocaml-variants.5.0.0+trunk' }}
- run: |
opam repo add alpha git+https://github.com/kit-ty-kate/opam-alpha-repository.git
opam pin . --with-doc --with-test --yes
if: ${{ matrix.ocaml-compiler == 'ocaml-variants.5.0.0+trunk' }}
- run: echo 'opam-build-root='`opam var bwd:build` >> $GITHUB_ENV
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' && matrix.ocaml-compiler == 'ocaml-variants.5.0.0+trunk' }}
- uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' && matrix.ocaml-compiler == 'ocaml-variants.5.0.0+trunk' }}
with:
force_orphan: true
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 73cfeb9

Please sign in to comment.