Skip to content

Commit

Permalink
CI: macOS both x86 and arm
Browse files Browse the repository at this point in the history
  • Loading branch information
liyishuai authored and pmetzger committed Aug 6, 2024
1 parent fff4390 commit c24f57f
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
fail-fast: false
matrix:
os:
- macos-13
- macos-latest
- ubuntu-latest
- windows-latest
Expand All @@ -20,17 +21,52 @@ jobs:
- 4.10.x
- 4.12.x
- 4.14.x
- 5.02.x
setup-version:
- v2
- v3
exclude:
- os: ubuntu-latest
setup-version: v2
- os: macos-13
setup-version: v3
- os: macos-latest
setup-version: v2
- os: macos-latest
ocaml-compiler: 4.08.x
- os: windows-latest
setup-version: v3
ocaml-compiler: 4.08.x
- os: windows-latest
setup-version: v3
ocaml-compiler: 4.10.x
- os: windows-latest
setup-version: v3
ocaml-compiler: 4.12.x
- os: windows-latest
setup-version: v3
ocaml-compiler: 4.14.x
- os: windows-latest
setup-version: v2
ocaml-compiler: 5.02.x

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

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use OCaml ${{ matrix.ocaml-compiler }}
- name: Use OCaml ${{ matrix.ocaml-compiler }} with v2
if: ${{ matrix.setup-version == 'v2' }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}

- name: Use OCaml ${{ matrix.ocaml-compiler }} with v3
if: ${{ matrix.setup-version == 'v3' }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}

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

Expand Down

0 comments on commit c24f57f

Please sign in to comment.