mirror of
https://github.com/c-cube/linol.git
synced 2026-05-05 08:54:26 -04:00
faster CI
This commit is contained in:
parent
c6e84391e7
commit
2e7a8f3482
4 changed files with 33 additions and 43 deletions
17
.github/workflows/format.yml
vendored
Normal file
17
.github/workflows/format.yml
vendored
Normal 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
|
||||||
13
.github/workflows/gh-pages.yml
vendored
13
.github/workflows/gh-pages.yml
vendored
|
|
@ -8,18 +8,13 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: ghcr.io/c-cube/c-cube-commmon/ci-doc-5.3:latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@v6
|
||||||
with:
|
|
||||||
submodules: 'recursive'
|
|
||||||
- uses: ocaml/setup-ocaml@v3
|
|
||||||
with:
|
|
||||||
ocaml-compiler: '5.2'
|
|
||||||
dune-cache: true
|
|
||||||
allow-prerelease-opam: true
|
|
||||||
|
|
||||||
- name: Deps
|
- name: Deps
|
||||||
run: opam install odig linol linol-lwt
|
run: opam install linol linol-lwt
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: opam exec -- odig odoc --cache-dir=_doc/ linol linol-lwt || (odig log -e ; exit 1)
|
run: opam exec -- odig odoc --cache-dir=_doc/ linol linol-lwt || (odig log -e ; exit 1)
|
||||||
|
|
|
||||||
39
.github/workflows/main.yml
vendored
39
.github/workflows/main.yml
vendored
|
|
@ -6,52 +6,27 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
jobs:
|
jobs:
|
||||||
build4:
|
build4:
|
||||||
strategy:
|
runs-on: ubuntu-latest
|
||||||
matrix:
|
container: ghcr.io/c-cube/c-cube-commmon/ci-4.14:latest
|
||||||
os:
|
|
||||||
- ubuntu-latest
|
|
||||||
ocaml-compiler:
|
|
||||||
- 4.14.x
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: 'recursive'
|
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 pin -n .
|
||||||
- run: opam depext -yt linol linol-lwt
|
- run: opam depext -yt linol linol-lwt
|
||||||
- run: opam install linol linol-lwt --deps-only -t
|
- run: opam install linol linol-lwt --deps-only -t
|
||||||
- run: opam exec -- dune build -p linol,linol-lwt
|
- run: opam exec -- dune build -p linol,linol-lwt
|
||||||
- run: opam exec -- dune runtest -p linol,linol-lwt
|
- run: opam exec -- dune runtest -p linol,linol-lwt
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
|
||||||
build5:
|
build5:
|
||||||
strategy:
|
runs-on: ubuntu-latest
|
||||||
matrix:
|
container: ghcr.io/c-cube/c-cube-commmon/ci-5.4:latest
|
||||||
os:
|
|
||||||
- ubuntu-latest
|
|
||||||
#- macos-latest
|
|
||||||
#- windows-latest
|
|
||||||
ocaml-compiler:
|
|
||||||
- 5.1.x
|
|
||||||
- 5.2.x
|
|
||||||
- 5.3.x
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: 'recursive'
|
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 pin -n .
|
||||||
- run: opam depext -yt linol linol-lwt linol-eio
|
- run: opam depext -yt linol linol-lwt linol-eio
|
||||||
- run: opam install -t . --deps-only
|
- run: opam install -t . --deps-only
|
||||||
- run: opam exec -- dune build
|
- run: opam exec -- dune build
|
||||||
- run: opam exec -- dune runtest
|
- run: opam exec -- dune runtest
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
|
||||||
|
|
|
||||||
5
Makefile
5
Makefile
|
|
@ -13,9 +13,12 @@ clean:
|
||||||
doc:
|
doc:
|
||||||
@dune build @doc
|
@dune build @doc
|
||||||
|
|
||||||
fmt:
|
format:
|
||||||
@dune build @fmt --auto-promote
|
@dune build @fmt --auto-promote
|
||||||
|
|
||||||
|
format-check:
|
||||||
|
@dune build $(DUNE_OPTS) @fmt --display=quiet
|
||||||
|
|
||||||
update-submodules:
|
update-submodules:
|
||||||
@git submodule update --init
|
@git submodule update --init
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue