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
d0f4b84a69
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:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/c-cube/c-cube-commmon/ci-doc-5.3:latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@main
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
- uses: ocaml/setup-ocaml@v3
|
||||
with:
|
||||
ocaml-compiler: '5.2'
|
||||
dune-cache: true
|
||||
allow-prerelease-opam: true
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Deps
|
||||
run: opam install odig linol linol-lwt
|
||||
run: opam install linol linol-lwt
|
||||
|
||||
- name: Build
|
||||
run: opam exec -- odig odoc --cache-dir=_doc/ linol linol-lwt || (odig log -e ; exit 1)
|
||||
|
|
|
|||
41
.github/workflows/main.yml
vendored
41
.github/workflows/main.yml
vendored
|
|
@ -6,52 +6,27 @@ on:
|
|||
pull_request:
|
||||
jobs:
|
||||
build4:
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
ocaml-compiler:
|
||||
- 4.14.x
|
||||
runs-on: ${{ matrix.os }}
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/c-cube/c-cube-commmon/ci-4.14:latest
|
||||
steps:
|
||||
- uses: actions/checkout@main
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
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 depext -yt linol linol-lwt
|
||||
- run: opam install linol linol-lwt --deps-only -t
|
||||
- run: opam exec -- dune build -p linol,linol-lwt
|
||||
- run: opam exec -- dune runtest -p linol,linol-lwt
|
||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||
|
||||
build5:
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
#- macos-latest
|
||||
#- windows-latest
|
||||
ocaml-compiler:
|
||||
- 5.1.x
|
||||
- 5.2.x
|
||||
- 5.3.x
|
||||
runs-on: ${{ matrix.os }}
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/c-cube/c-cube-commmon/ci-5.4:latest
|
||||
steps:
|
||||
- uses: actions/checkout@main
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
- uses: ocaml/setup-ocaml@v3
|
||||
with:
|
||||
ocaml-compiler: ${{ matrix.ocaml-compiler }}
|
||||
dune-cache: true
|
||||
allow-prerelease-opam: true
|
||||
submodules: 'recursive'
|
||||
- run: opam pin -n .
|
||||
- run: opam depext -yt linol linol-lwt linol-eio
|
||||
- run: opam install -t . --deps-only
|
||||
- run: opam exec -- dune build
|
||||
- run: opam exec -- dune runtest
|
||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||
|
|
|
|||
5
Makefile
5
Makefile
|
|
@ -13,9 +13,12 @@ clean:
|
|||
doc:
|
||||
@dune build @doc
|
||||
|
||||
fmt:
|
||||
format:
|
||||
@dune build @fmt --auto-promote
|
||||
|
||||
format-check:
|
||||
@dune build $(DUNE_OPTS) @fmt --display=quiet
|
||||
|
||||
update-submodules:
|
||||
@git submodule update --init
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue