This commit is contained in:
Simon Cruanes 2026-04-07 21:23:03 -04:00
parent 0ff2645de4
commit 471feb96d6
3 changed files with 28 additions and 44 deletions

17
.github/workflows/format.yml vendored Normal file
View file

@ -0,0 +1,17 @@
name: format
on:
push:
branches:
- main
pull_request:
jobs:
format:
name: format
runs-on: 'ubuntu-latest'
container: ghcr.io/c-cube/c-cube-commmon/ci-doc-5.3:latest
steps:
- uses: actions/checkout@v6
- run: opam exec -- make format-check

View file

@ -9,20 +9,14 @@ jobs:
deploy: deploy:
name: Deploy doc name: Deploy doc
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: ghcr.io/c-cube/c-cube-commmon/ci-doc-5.3:latest
steps: steps:
- uses: actions/checkout@main - uses: actions/checkout@v6
- name: Use OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: '5.3'
dune-cache: true
allow-prerelease-opam: true
# temporary until it's in a release # temporary until it's in a release
- run: opam pin picos 0.6.0 -y -n - run: opam pin picos 0.6.0 -y -n
- run: opam install odig moonpool moonpool-lwt -t - run: opam install moonpool moonpool-lwt -t
- run: opam exec -- odig odoc --cache-dir=_doc/ moonpool moonpool-lwt - run: opam exec -- odig odoc --cache-dir=_doc/ moonpool moonpool-lwt

View file

@ -1,4 +1,4 @@
name: Build and Test name: build
on: on:
push: push:
@ -13,22 +13,14 @@ jobs:
strategy: strategy:
fail-fast: true fail-fast: true
matrix: matrix:
os: container:
- ubuntu-latest - ghcr.io/c-cube/c-cube-commmon/ci-5.0:latest
ocaml-compiler: - ghcr.io/c-cube/c-cube-commmon/ci-5.4:latest
- '5.0'
- '5.3'
runs-on: ${{ matrix.os }} runs-on: ubuntu-latest
container: ${{ matrix.container }}
steps: steps:
- uses: actions/checkout@main - uses: actions/checkout@v6
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: true
allow-prerelease-opam: true
- run: opam pin picos 0.6.0 -y -n - run: opam pin picos 0.6.0 -y -n
- run: opam install -t . --deps-only - run: opam install -t . --deps-only
@ -40,6 +32,7 @@ jobs:
compat: compat:
name: build-compat # compat with other OSes name: build-compat # compat with other OSes
needs: run # only run this if cheap linux job passed
timeout-minutes: 15 timeout-minutes: 15
strategy: strategy:
fail-fast: true fail-fast: true
@ -67,23 +60,3 @@ jobs:
# install some depopts # install some depopts
- run: opam install thread-local-storage trace domain-local-await - run: opam install thread-local-storage trace domain-local-await
- run: opam exec -- dune build --profile=release --force @install @runtest - run: opam exec -- dune build --profile=release --force @install @runtest
format:
name: format
strategy:
matrix:
ocaml-compiler:
- '5.3'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@main
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: true
allow-prerelease-opam: true
- run: opam install ocamlformat.0.27.0
- run: opam exec -- make format-check