Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Jun 26, 2024
1 parent da492c9 commit 43d86e6
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ jobs:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
allow-prerelease-opam: true

- name: set ocamlversion
run: echo "ocamlversion=$(opam exec -- ocamlc -version)" >> $GITHUB_OUTPUT
id: conf
shell: bash

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

- run: opam exec -- make test
Expand All @@ -63,13 +68,13 @@ jobs:
- run: opam exec -- opam install -v ocamlbuild
- run: opam exec -- opam install -v menhir
- run: opam exec -- opam install -v camlp4
if: (! startsWith(matrix.ocaml-compiler, '5.2'))
if: ${{ ! startsWith(steps.conf.outputs.ocamlversion, '5.2.') }}
- run: opam exec -- make test-external
if: (! startsWith(matrix.ocaml-compiler, '5.2'))
- run: opam exec -- opam install -v mtime.1.0.0 # this tests topkg, with stub libraries
if: ${{ ! startsWith(steps.conf.outputs.ocamlversion, '5.2.') }}
- run: opam exec -- opam install -v mtime.1.4.0 # this tests topkg, with stub libraries
- run: opam exec -- opam install -v inotify.2.3 # this tests oasis, with stub libraries
if: (! startsWith(matrix.ocaml-compiler, '5')) && runner.os != 'Windows'
if: ${{ ! startsWith(steps.conf.outputs.ocamlversion, '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'
if: ${{ ! startsWith(steps.conf.outputs.ocamlversion, '5.') && runner.os != 'Windows' }}

0 comments on commit 43d86e6

Please sign in to comment.