Debug CI #3
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: Debug CI | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Dev and Debug Workflows | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
ocaml-compiler: | |
- ocaml-base-compiler.4.14.1 | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Use OCaml ${{ matrix.ocaml-compiler }} | |
uses: ocaml/setup-ocaml@v3 | |
with: | |
ocaml-compiler: ${{ matrix.ocaml-compiler }} | |
dune-cache: ${{ matrix.os != 'macos-latest' }} | |
opam-repositories: | | |
pin: git+https://github.com/ocaml/opam-repository#c45f5bab71d3589f41f9603daca5acad14df0ab0 | |
opam-disable-sandboxing: true | |
- name: Install system dependencies (Linux) | |
run: sudo apt update && sudo apt-get install libev-dev libonig-dev libcurl4-openssl-dev | |
if: runner.os == 'Linux' | |
- name: Install system dependencies (macOS) | |
run: brew install libev openssl@3.3 # Openssl is a workaround for https://github.com/ocaml/opam-repository/issues/19676 | |
if: runner.os == 'macOS' | |
- name: Install opam dependencies | |
run: opam install --deps-only . | |
- name: Build project | |
run: opam exec -- dune build | |