mirror of
https://github.com/c-cube/moonpool.git
synced 2026-05-05 17:04:33 -04:00
wip: CI
This commit is contained in:
parent
0ff2645de4
commit
471feb96d6
3 changed files with 28 additions and 44 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-doc-5.3:latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
- run: opam exec -- make format-check
|
||||||
|
|
||||||
12
.github/workflows/gh-pages.yml
vendored
12
.github/workflows/gh-pages.yml
vendored
|
|
@ -9,20 +9,14 @@ jobs:
|
||||||
deploy:
|
deploy:
|
||||||
name: Deploy doc
|
name: Deploy doc
|
||||||
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
|
||||||
|
|
||||||
- name: Use OCaml
|
|
||||||
uses: ocaml/setup-ocaml@v3
|
|
||||||
with:
|
|
||||||
ocaml-compiler: '5.3'
|
|
||||||
dune-cache: true
|
|
||||||
allow-prerelease-opam: true
|
|
||||||
|
|
||||||
# temporary until it's in a release
|
# temporary until it's in a release
|
||||||
- run: opam pin picos 0.6.0 -y -n
|
- run: opam pin picos 0.6.0 -y -n
|
||||||
|
|
||||||
- run: opam install odig moonpool moonpool-lwt -t
|
- run: opam install moonpool moonpool-lwt -t
|
||||||
|
|
||||||
- run: opam exec -- odig odoc --cache-dir=_doc/ moonpool moonpool-lwt
|
- run: opam exec -- odig odoc --cache-dir=_doc/ moonpool moonpool-lwt
|
||||||
|
|
||||||
|
|
|
||||||
43
.github/workflows/main.yml
vendored
43
.github/workflows/main.yml
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
name: Build and Test
|
name: build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -13,22 +13,14 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
container:
|
||||||
- ubuntu-latest
|
- ghcr.io/c-cube/c-cube-commmon/ci-5.0:latest
|
||||||
ocaml-compiler:
|
- ghcr.io/c-cube/c-cube-commmon/ci-5.4:latest
|
||||||
- '5.0'
|
|
||||||
- '5.3'
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ubuntu-latest
|
||||||
|
container: ${{ matrix.container }}
|
||||||
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 pin picos 0.6.0 -y -n
|
- run: opam pin picos 0.6.0 -y -n
|
||||||
|
|
||||||
- run: opam install -t . --deps-only
|
- run: opam install -t . --deps-only
|
||||||
|
|
@ -40,6 +32,7 @@ jobs:
|
||||||
|
|
||||||
compat:
|
compat:
|
||||||
name: build-compat # compat with other OSes
|
name: build-compat # compat with other OSes
|
||||||
|
needs: run # only run this if cheap linux job passed
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
|
|
@ -67,23 +60,3 @@ jobs:
|
||||||
# install some depopts
|
# install some depopts
|
||||||
- run: opam install thread-local-storage trace domain-local-await
|
- run: opam install thread-local-storage trace domain-local-await
|
||||||
- run: opam exec -- dune build --profile=release --force @install @runtest
|
- run: opam exec -- dune build --profile=release --force @install @runtest
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
- run: opam install ocamlformat.0.27.0
|
|
||||||
- run: opam exec -- make format-check
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue