From 05573a8d64791e644a1722a03f148c1de5499dbf Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Mon, 6 Apr 2026 18:14:45 -0400 Subject: [PATCH] use docker for CI --- .github/workflows/gh-pages.yml | 11 +++------- .github/workflows/main.yml | 40 +++++++++++----------------------- 2 files changed, 16 insertions(+), 35 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index f022b4ca..9c659259 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -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 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 541b7fab..bfb647ad 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 -