Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to opam.2.2 #336

Merged
merged 4 commits into from
Jun 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 16 additions & 37 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,22 @@ jobs:
- ubuntu-latest
- windows-latest
ocaml-compiler:
- "4.08"
- "4.09"
- "4.10"
- "4.11"
- "4.12"
- "4.13"
- "4.14"
- "5.0.0"
- "5.1.1"
- "5.2.0"
- "5.0"
- "5.1"
- "5.2"
include:
- os: ubuntu-latest
ocaml-compiler: "4.08"
- os: ubuntu-latest
ocaml-compiler: "4.09"
- os: ubuntu-latest
ocaml-compiler: "4.10"
- os: ubuntu-latest
ocaml-compiler: "4.11"
- os: ubuntu-latest
ocaml-compiler: "4.12"

runs-on: ${{ matrix.os }}

Expand All @@ -42,39 +48,11 @@ jobs:
uses: actions/checkout@v4

- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
if: runner.os == 'Windows' && ! startsWith(matrix.ocaml-compiler, '5')
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-repositories: |
default: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
opam: https://github.com/ocaml/opam-repository.git
dune-cache: true
opam-depext: ${{ !matrix.skip-test }}
opam-depext-flags: --with-test

- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
if: runner.os == 'Windows' && startsWith(matrix.ocaml-compiler, '5')
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ocaml-variants.${{ matrix.ocaml-compiler }}+options,ocaml-option-mingw
opam-repositories: |
dra27: https://github.com/dra27/opam-repository.git#windows-5.0
default: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
opam: https://github.com/ocaml/opam-repository.git
dune-cache: true
opam-depext: ${{ !matrix.skip-test }}
opam-depext-flags: --with-test

- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
if: runner.os != 'Windows'
uses: ocaml/setup-ocaml@v2
uses: ocaml/setup-ocaml@v3.0.0-alpha
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
allow-prerelease-opam: true
dune-cache: true
opam-depext: ${{ !matrix.skip-test }}
opam-depext-flags: --with-test

- run: opam install . --with-test --deps-only

Expand All @@ -90,5 +68,6 @@ jobs:
- run: opam exec -- opam install -v inotify.2.3 # this tests oasis, with stub libraries
if: (! startsWith(matrix.ocaml-compiler, '5')) && runner.os != 'Windows'
- run: opam exec -- opam install -v cpuid.0.1.1 # this tests the ocb-stubblr plugin
if: runner.os != 'Windows'
- run: opam exec -- opam install -v shcaml.0.2.1 # this tests the cppo plugin
if: (! startsWith(matrix.ocaml-compiler, '5')) && runner.os != 'Windows'