Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create GH Actions for testing Windows support. #40

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -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