Update changelog #700
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main workflow | |
on: | |
pull_request: | |
push: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-latest | |
ocaml-compiler: | |
- 5.1.x | |
local-packages: | |
- eio eio_posix eio_main | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Use OCaml ${{ matrix.ocaml-compiler }} | |
uses: ocaml/setup-ocaml@v2 | |
with: | |
ocaml-compiler: ${{ matrix.ocaml-compiler }} | |
opam-local-packages: | |
opam-disable-sandboxing: true | |
- run: opam --cli=2.1 pin -yn --with-version=dev . | |
- run: opam install ${{ matrix.local-packages }} --deps-only --with-test | |
- run: opam install ${{ matrix.local-packages }} --with-test | |
windows: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set-up OCaml | |
uses: ocaml/setup-ocaml@v2 | |
with: | |
opam-pin: false | |
opam-depext: false | |
ocaml-compiler: ocaml.5.1.0,ocaml-option-mingw | |
opam-repositories: | | |
dra27: https://github.com/dra27/opam-repository.git#windows-5.0 | |
normal: https://github.com/ocaml/opam-repository.git | |
# --with-version=dev is not available, and --with-test also tries running tests for packages (like MDX) which fail... | |
- run: | | |
opam pin -yn eio.dev . | |
opam pin -yn eio_windows.dev . | |
opam pin -yn eio_main.dev . | |
opam install eio eio_windows eio_main --deps-only --with-test | |
- run: opam exec -- dune build | |
- run: opam exec -- dune runtest | |
- run: opam exec -- dune exec -- ./examples/net/main.exe | |
- run: opam exec -- dune exec -- ./examples/fs/main.exe | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build the Docker image | |
run: docker build . |