mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2026-05-05 17:04:25 -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:
|
jobs:
|
||||||
format:
|
format:
|
||||||
name: format
|
name: format
|
||||||
strategy:
|
runs-on: ubuntu-latest
|
||||||
matrix:
|
container: ghcr.io/c-cube/c-cube-commmon/ci-4.14:latest
|
||||||
ocaml-compiler:
|
|
||||||
- '5.3'
|
|
||||||
runs-on: 'ubuntu-latest'
|
|
||||||
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 install ocamlformat.0.27.0
|
|
||||||
- run: opam exec -- make format-check
|
- 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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master # Set a branch name to trigger deployment
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
name: Deploy doc
|
name: Deploy doc
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
container: ghcr.io/c-cube/c-cube-commmon/ci-5.4:latest
|
||||||
- uses: actions/checkout@main
|
|
||||||
|
|
||||||
- name: Use OCaml
|
steps:
|
||||||
uses: ocaml/setup-ocaml@v3
|
- uses: actions/checkout@v6
|
||||||
with:
|
|
||||||
ocaml-compiler: '5.2'
|
|
||||||
dune-cache: false
|
|
||||||
|
|
||||||
- name: Deps
|
- name: Deps
|
||||||
run: opam install odig containers containers-data
|
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:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run:
|
build:
|
||||||
name: build
|
name: build
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
include:
|
||||||
- ubuntu-latest
|
- ocaml-version: "4.08"
|
||||||
ocaml-compiler:
|
container: ghcr.io/c-cube/c-cube-commmon/ci-4.08:latest
|
||||||
- '4.08'
|
- ocaml-version: "4.14"
|
||||||
- '4.10'
|
container: ghcr.io/c-cube/c-cube-commmon/ci-4.14:latest
|
||||||
- '4.14'
|
- ocaml-version: "5.4"
|
||||||
- '5.3'
|
container: ghcr.io/c-cube/c-cube-commmon/ci-5.4:latest
|
||||||
- 'ocaml-variants.5.0.0+options,ocaml-option-bytecode-only'
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: ${{ matrix.container }}
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
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 install -t containers containers-data --deps-only
|
- run: opam install -t containers containers-data --deps-only
|
||||||
- run: opam exec -- dune build '@install'
|
- run: opam exec -- dune build '@install'
|
||||||
- run: opam exec -- dune runtest --force --profile=release
|
- 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