Skip to content

feat: Upgrade ci dependencies #605

feat: Upgrade ci dependencies

feat: Upgrade ci dependencies #605

Workflow file for this run

name: Opam
on:
push:
branches: [main]
pull_request:
# This will cancel previous runs when a branch or PR is updated
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
ocaml-compiler: [4.13.1, 4.14.1, 5.3.0]
steps:
- name: Setup node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: "22"
check-latest: true
- name: Checkout project
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: true
- name: Setup OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@4dd53a587b9836a35604fec9601e606ff42145bc # v3.4.1
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- name: Inspect depexts
run: |
opam exec -- which cmake
opam exec -- which gcc
opam exec -- which g++
opam exec -- gcc --version
opam exec -- g++ --version
- name: Install local dependencies
run: opam install . --deps-only --with-test
- name: Build project
run: opam exec -- dune build
- name: Run tests
run: opam exec -- dune runtest --display=short