use docker for CI

This commit is contained in:
Simon Cruanes 2026-04-06 18:14:45 -04:00
parent 0d0db75f26
commit 05573a8d64
2 changed files with 16 additions and 35 deletions

View file

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

View file

@ -13,21 +13,17 @@ jobs:
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- '5.0'
- '5.3'
include:
- ocaml-version: '5.0'
container: ghcr.io/c-cube/c-cube-commmon/ci-5.0:latest
- ocaml-version: '5.3'
container: ghcr.io/c-cube/c-cube-commmon/ci-doc-5.3:latest
runs-on: ubuntu-latest
container: ${{ matrix.container }}
runs-on: ${{ matrix.os }}
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
- uses: actions/checkout@v6
- run: opam pin picos 0.6.0 -y -n
@ -70,20 +66,10 @@ jobs:
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
runs-on: ubuntu-latest
container: ghcr.io/c-cube/c-cube-commmon/ci-doc-5.3:latest
steps:
- uses: actions/checkout@v6
- run: opam install ocamlformat.0.27.0
- run: opam exec -- make format-check