Skip to content

Commit

Permalink
Merge pull request #40 from tmcgilchrist/windows
Browse files Browse the repository at this point in the history
Create GH Actions for testing Windows support.
  • Loading branch information
tmcgilchrist committed Oct 30, 2023
2 parents 0f17ad2 + 11e428a commit 864ce01
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/windows.yml
@@ -0,0 +1,43 @@
name: windows

on:
pull_request:
push:
branches:
- main

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- windows-latest
ocaml-compiler:
- "ocaml.5.0.0,ocaml-option-mingw"
- "ocaml.5.1.0,ocaml-option-mingw"

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

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

- name: Set-up OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-repositories: |
dra27: https://github.com/dra27/opam-repository.git#windows-5.0
default: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
standard: https://github.com/ocaml/opam-repository.git
opam-local-packages: |
grpc.opam
grpc-lwt.opam
grpc-eio.opam
- name: Install dependencies
run: opam install ./grpc.opam ./grpc-lwt.opam ./grpc-eio.opam --deps-only --with-test

- name: Build
run: opam exec -- dune build lib/grpc lib/grpc-lwt lib/grpc-eio

0 comments on commit 864ce01

Please sign in to comment.