faster CI

This commit is contained in:
Simon Cruanes 2026-04-07 20:57:23 -04:00
parent c6e84391e7
commit 2e7a8f3482
4 changed files with 33 additions and 43 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-4.14:latest
steps:
- uses: actions/checkout@v6
- run: opam exec -- make format-check

View file

@ -8,18 +8,13 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
container: ghcr.io/c-cube/c-cube-commmon/ci-doc-5.3:latest
steps:
- uses: actions/checkout@main
with:
submodules: 'recursive'
- uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: '5.2'
dune-cache: true
allow-prerelease-opam: true
- uses: actions/checkout@v6
- name: Deps
run: opam install odig linol linol-lwt
run: opam install linol linol-lwt
- name: Build
run: opam exec -- odig odoc --cache-dir=_doc/ linol linol-lwt || (odig log -e ; exit 1)

View file

@ -6,52 +6,27 @@ on:
pull_request:
jobs:
build4:
strategy:
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- 4.14.x
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
container: ghcr.io/c-cube/c-cube-commmon/ci-4.14:latest
steps:
- uses: actions/checkout@main
- uses: actions/checkout@v6
with:
submodules: 'recursive'
- uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: true
allow-prerelease-opam: true
- run: opam pin -n .
- run: opam depext -yt linol linol-lwt
- run: opam install linol linol-lwt --deps-only -t
- run: opam exec -- dune build -p linol,linol-lwt
- run: opam exec -- dune runtest -p linol,linol-lwt
if: ${{ matrix.os == 'ubuntu-latest' }}
build5:
strategy:
matrix:
os:
- ubuntu-latest
#- macos-latest
#- windows-latest
ocaml-compiler:
- 5.1.x
- 5.2.x
- 5.3.x
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
container: ghcr.io/c-cube/c-cube-commmon/ci-5.4:latest
steps:
- uses: actions/checkout@main
- uses: actions/checkout@v6
with:
submodules: 'recursive'
- uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: true
allow-prerelease-opam: true
- run: opam pin -n .
- run: opam depext -yt linol linol-lwt linol-eio
- run: opam install -t . --deps-only
- run: opam exec -- dune build
- run: opam exec -- dune runtest
if: ${{ matrix.os == 'ubuntu-latest' }}

View file

@ -13,9 +13,12 @@ clean:
doc:
@dune build @doc
fmt:
format:
@dune build @fmt --auto-promote
format-check:
@dune build $(DUNE_OPTS) @fmt --display=quiet
update-submodules:
@git submodule update --init