mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-09 12:23:32 -04:00
CI
This commit is contained in:
parent
de8b51a9a2
commit
37f8a237ff
2 changed files with 6 additions and 7 deletions
11
.github/workflows/gh-pages.yml
vendored
11
.github/workflows/gh-pages.yml
vendored
|
|
@ -4,7 +4,6 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main # Set a branch name to trigger deployment
|
- main # Set a branch name to trigger deployment
|
||||||
pull_request:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
|
@ -16,22 +15,22 @@ jobs:
|
||||||
- name: Use OCaml
|
- name: Use OCaml
|
||||||
uses: ocaml/setup-ocaml@v2
|
uses: ocaml/setup-ocaml@v2
|
||||||
with:
|
with:
|
||||||
ocaml-compiler: '5.0.x'
|
ocaml-compiler: '5.1.x'
|
||||||
allow-prerelease-opam: true
|
allow-prerelease-opam: true
|
||||||
dune-cache: true
|
dune-cache: true
|
||||||
|
|
||||||
- run: opam pin odoc 2.2.2 -y -n
|
- run: opam pin odoc 2.2.2 -y -n
|
||||||
# crash with 2.4, see https://github.com/ocaml/odoc/issues/1066
|
# crash with 2.4, see https://github.com/ocaml/odoc/issues/1066
|
||||||
- name: Deps
|
- name: Deps
|
||||||
run: opam install trace trace-tef trace-fuchsia ppx_trace -d
|
run: opam install odig trace trace-tef trace-fuchsia ppx_trace
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: opam exec -- dune build @doc
|
run: opam exec -- odig odoc --cache-dir=_doc/ trace trace-tef trace-fuchsia ppx_trace
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./_build/default/_doc/_html/
|
publish_dir: ./_doc/html
|
||||||
destination_dir: .
|
destination_dir: .
|
||||||
enable_jekyll: true
|
enable_jekyll: false
|
||||||
|
|
|
||||||
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
|
@ -20,7 +20,7 @@ jobs:
|
||||||
- '4.08.x'
|
- '4.08.x'
|
||||||
- '4.12.x'
|
- '4.12.x'
|
||||||
- '4.14.x'
|
- '4.14.x'
|
||||||
- '5.0.x'
|
- '5.1.x'
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue