mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-08 03:47:57 -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:
|
||||
branches:
|
||||
- main # Set a branch name to trigger deployment
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
|
|
@ -16,22 +15,22 @@ jobs:
|
|||
- name: Use OCaml
|
||||
uses: ocaml/setup-ocaml@v2
|
||||
with:
|
||||
ocaml-compiler: '5.0.x'
|
||||
ocaml-compiler: '5.1.x'
|
||||
allow-prerelease-opam: true
|
||||
dune-cache: true
|
||||
|
||||
- run: opam pin odoc 2.2.2 -y -n
|
||||
# crash with 2.4, see https://github.com/ocaml/odoc/issues/1066
|
||||
- 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
|
||||
run: opam exec -- dune build @doc
|
||||
run: opam exec -- odig odoc --cache-dir=_doc/ trace trace-tef trace-fuchsia ppx_trace
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./_build/default/_doc/_html/
|
||||
publish_dir: ./_doc/html
|
||||
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.12.x'
|
||||
- '4.14.x'
|
||||
- '5.0.x'
|
||||
- '5.1.x'
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue