Skip to content

Commit

Permalink
ci: add win test
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed Nov 11, 2024
1 parent f6ed2e2 commit f065d11
Showing 1 changed file with 12 additions and 26 deletions.
38 changes: 12 additions & 26 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ jobs:
os:
- ubuntu-latest
- macos-latest
ocaml-compiler:
- "5"
- windows-latest
local-packages:
- |
*.opam
Expand All @@ -37,10 +36,10 @@ jobs:
- name: Checkout tree
uses: actions/checkout@v4

- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
ocaml-compiler: 5
dune-cache: true
opam-local-packages: ${{ matrix.local-packages }}

Expand All @@ -64,8 +63,7 @@ jobs:
os:
- ubuntu-latest
- macos-latest
ocaml-compiler:
- "5"
- windows-latest
local-packages:
- |
*.opam
Expand All @@ -84,10 +82,10 @@ jobs:
- name: Checkout tree
uses: actions/checkout@v4

- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
ocaml-compiler: 5
dune-cache: true
opam-local-packages: ${{ matrix.local-packages }}

Expand All @@ -111,8 +109,7 @@ jobs:
os:
- ubuntu-latest
- macos-latest
ocaml-compiler:
- "5"
- windows-latest
local-packages:
- |
http.opam
Expand All @@ -125,10 +122,10 @@ jobs:
- name: Checkout tree
uses: actions/checkout@v4

- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
ocaml-compiler: 5
dune-cache: true
opam-local-packages: ${{ matrix.local-packages }}
opam-repositories: |
Expand All @@ -141,29 +138,18 @@ jobs:

build-test-cohttp-bench:
if: github.event.pull_request.draft == false
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- "5"
local-packages:
- |
*.opam

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

steps:
- name: Checkout tree
uses: actions/checkout@v4

- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
ocaml-compiler: 5
dune-cache: true
opam-local-packages: ${{ matrix.local-packages }}
opam-repositories: |
default: https://github.com/ocaml/opam-repository.git
alpha: https://github.com/kit-ty-kate/opam-alpha-repository.git
Expand Down

0 comments on commit f065d11

Please sign in to comment.