Update CI: Use latest setup-ocaml (v3) #51
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: main | |
on: | |
- pull_request | |
- push | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
# - {os: macos-latest, ocaml: 4.10.x} # < OCaml 4.10 is no longer unavailable | |
# - {os: macos-latest, ocaml: 4.14.x} | |
# - {os: macos-latest, ocaml: 5.2.x} | |
# - {os: ubuntu-latest, ocaml: 4.08.x} | |
# - {os: ubuntu-latest, ocaml: 4.09.x} | |
# - {os: ubuntu-latest, ocaml: 4.10.x} | |
# - {os: ubuntu-latest, ocaml: 4.11.x} | |
# - {os: ubuntu-latest, ocaml: 4.12.x} | |
# - {os: ubuntu-latest, ocaml: 4.13.x} | |
# - {os: ubuntu-latest, ocaml: 4.14.x} | |
# - {os: ubuntu-latest, ocaml: 5.0.x} | |
# - {os: ubuntu-latest, ocaml: 5.2.x} | |
- {os: windows-latest, ocaml: 4.12.x} # < OCaml 4.10 will not compile | |
# - {os: windows-latest, ocaml: 4.14.x} | |
# - {os: windows-latest, ocaml: 5.2.x} | |
runs-on: ${{ matrix.config.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Use OCaml ${{ matrix.config.ocaml }} | |
uses: ocaml/setup-ocaml@v3 | |
with: | |
ocaml-compiler: ${{ matrix.config.ocaml }} | |
- run: opam pin add --no-action ppx_blob.dev . | |
- run: opam install --deps-only --with-test . | |
- run: opam exec -- dune build @all @runtest | |
integration-test: | |
strategy: | |
fail-fast: false | |
matrix: | |
test-dir: | |
- dune-lang-1 | |
- dune-lang-3 | |
- ocamlbuild | |
- ocamlopt | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Use OCaml ${{ matrix.ocaml-compiler }} | |
uses: ocaml/setup-ocaml@v3 | |
with: | |
ocaml-compiler: 4.11.x | |
- run: opam pin add ppx_blob.dev . | |
- run: opam pin add foo "integration-test/${{ matrix.test-dir }}" | |
- run: opam exec -- make clean run | |
working-directory: "integration-test/${{ matrix.test-dir }}" |