Skip to content

Commit

Permalink
Try update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
reynir committed Sep 10, 2024
1 parent 3340ea4 commit ea44d26
Showing 1 changed file with 18 additions and 23 deletions.
41 changes: 18 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,31 @@ jobs:
strategy:
fail-fast: false
matrix:
ocaml-version: [ '4.13.1', '4.10.0', '4.08.1' ]
operating-system: [ubuntu-latest, windows-latest]
ocaml-version: [ '5', '4', '4.10.0', '4.08.1' ]
operating-system: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: avsm/setup-ocaml@v1
- uses: actions/checkout@v4
- uses: ocaml/setup-ocaml@v3
with:
ocaml-version: ${{ matrix.ocaml-version }}
- run: opam pin add -n .
- name: Packages
run: opam depext -yt cstruct cstruct-sexp cstruct-unix cstruct-lwt
ocaml-compiler: ${{ matrix.ocaml-version }}
- run: opam install . --deps-only --with-test
- name: Build
run: opam install -t cstruct cstruct-sexp cstruct-unix cstruct-lwt
run: opam exec -- dune build
- run: opam exec -- dune runtest
ppx:
name: PPX
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
ocaml-version: [ '4.13.1', '4.10.0', '4.08.1' ]
operating-system: [ubuntu-latest, windows-latest]
ocaml-version: [ '5', '4', '4.10.0', '4.08.1' ]
operating-system: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: avsm/setup-ocaml@v1
- uses: actions/checkout@v4
- uses: ocaml/setup-ocaml@v3
with:
ocaml-version: ${{ matrix.ocaml-version }}
ocaml-compiler: ${{ matrix.ocaml-version }}
- run: opam pin add -n .
- name: Packages
run: opam depext -yt ppx_cstruct
- name: Build
run: opam install -t ppx_cstruct
async:
Expand All @@ -43,15 +40,13 @@ jobs:
strategy:
fail-fast: false
matrix:
ocaml-version: [ '4.13.1', '4.10.0', '4.08.1' ]
operating-system: [ubuntu-latest]
ocaml-version: [ '5', '4', '4.10.0', '4.08.1' ]
operating-system: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: avsm/setup-ocaml@v1
- uses: actions/checkout@v4
- uses: ocaml/setup-ocaml@v3
with:
ocaml-version: ${{ matrix.ocaml-version }}
ocaml-compiler: ${{ matrix.ocaml-version }}
- run: opam pin add -n .
- name: Packages
run: opam depext -yt cstruct-async
- name: Dependencies
run: opam install -t cstruct-async

0 comments on commit ea44d26

Please sign in to comment.