mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2026-05-05 08:54:22 -04:00
use prebuilt docker images for CI
This commit is contained in:
parent
c99883b841
commit
93d7846349
3 changed files with 21 additions and 69 deletions
19
.github/workflows/format.yml
vendored
19
.github/workflows/format.yml
vendored
|
|
@ -9,20 +9,9 @@ on:
|
|||
jobs:
|
||||
format:
|
||||
name: format
|
||||
strategy:
|
||||
matrix:
|
||||
ocaml-compiler:
|
||||
- '5.3'
|
||||
runs-on: 'ubuntu-latest'
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/c-cube/c-cube-commmon/ci-4.14: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
|
||||
- uses: actions/checkout@v6
|
||||
- run: opam exec -- make format-check
|
||||
|
||||
|
|
|
|||
12
.github/workflows/gh-pages.yml
vendored
12
.github/workflows/gh-pages.yml
vendored
|
|
@ -3,20 +3,16 @@ name: github pages
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- master # Set a branch name to trigger deployment
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: Deploy doc
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@main
|
||||
container: ghcr.io/c-cube/c-cube-commmon/ci-5.4:latest
|
||||
|
||||
- name: Use OCaml
|
||||
uses: ocaml/setup-ocaml@v3
|
||||
with:
|
||||
ocaml-compiler: '5.2'
|
||||
dune-cache: false
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Deps
|
||||
run: opam install odig containers containers-data
|
||||
|
|
|
|||
59
.github/workflows/main.yml
vendored
59
.github/workflows/main.yml
vendored
|
|
@ -7,58 +7,25 @@ on:
|
|||
pull_request:
|
||||
|
||||
jobs:
|
||||
run:
|
||||
build:
|
||||
name: build
|
||||
timeout-minutes: 15
|
||||
strategy:
|
||||
fail-fast: true
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
ocaml-compiler:
|
||||
- '4.08'
|
||||
- '4.10'
|
||||
- '4.14'
|
||||
- '5.3'
|
||||
- 'ocaml-variants.5.0.0+options,ocaml-option-bytecode-only'
|
||||
include:
|
||||
- ocaml-version: "4.08"
|
||||
container: ghcr.io/c-cube/c-cube-commmon/ci-4.08:latest
|
||||
- ocaml-version: "4.14"
|
||||
container: ghcr.io/c-cube/c-cube-commmon/ci-4.14:latest
|
||||
- ocaml-version: "5.4"
|
||||
container: ghcr.io/c-cube/c-cube-commmon/ci-5.4: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 install -t containers containers-data --deps-only
|
||||
- run: opam exec -- dune build '@install'
|
||||
- run: opam exec -- dune runtest --force --profile=release
|
||||
|
||||
compat:
|
||||
name: build
|
||||
timeout-minutes: 15
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
os:
|
||||
- macos-latest
|
||||
- ubuntu-latest
|
||||
#- windows-latest
|
||||
ocaml-compiler:
|
||||
- '5.1'
|
||||
|
||||
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
|
||||
- run: |
|
||||
opam install -t containers --deps-only ;
|
||||
opam install containers-data --deps-only # no test deps
|
||||
- run: opam exec -- dune build '@install'
|
||||
- run: opam exec -- dune runtest -j 1 -p containers --profile=release # test only core on non-ubuntu platform
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue