mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-18 16:46:42 -05:00
update ci, add auto-doc
This commit is contained in:
parent
a89f031fa0
commit
664e084087
2 changed files with 57 additions and 16 deletions
43
.github/workflows/gh-pages.yml
vendored
Normal file
43
.github/workflows/gh-pages.yml
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
name: github pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master # Set a branch name to trigger deployment
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@main
|
||||||
|
|
||||||
|
- name: Cache opam
|
||||||
|
id: cache-opam
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.opam
|
||||||
|
key: opam-ubuntu-latest-4.12.0
|
||||||
|
|
||||||
|
- uses: avsm/setup-ocaml@v1
|
||||||
|
with:
|
||||||
|
ocaml-version: '4.12.0'
|
||||||
|
|
||||||
|
- name: Pin
|
||||||
|
run: opam pin -n .
|
||||||
|
|
||||||
|
- name: Depext
|
||||||
|
run: opam depext -yt containers containers-data containers-thread
|
||||||
|
|
||||||
|
- name: Deps
|
||||||
|
run: opam install -d . --deps-only
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: opam exec -- dune build @doc
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./_build/default/_doc/_html/
|
||||||
|
destination_dir: dev
|
||||||
|
enable_jekyll: true
|
||||||
30
.github/workflows/main.yml
vendored
30
.github/workflows/main.yml
vendored
|
|
@ -3,27 +3,25 @@ on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
run:
|
run:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ${{ matrix.operating-system }}
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
#operating-system: [macos-latest, ubuntu-latest, windows-latest]
|
os:
|
||||||
operating-system: [ubuntu-latest]
|
- macos-latest
|
||||||
ocaml-version: [ '4.08.0' ]
|
- ubuntu-latest
|
||||||
|
- windows-latest
|
||||||
|
ocaml-compiler:
|
||||||
|
- 4.03.x
|
||||||
|
- 4.10.x
|
||||||
|
- 4.12.x
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v2
|
||||||
- uses: avsm/setup-ocaml@master
|
- uses: ocaml/setup-ocaml@v2
|
||||||
with:
|
with:
|
||||||
ocaml-version: ${{ matrix.ocaml-version }}
|
ocaml-compiler: ${{ matrix.ocaml-compiler }}
|
||||||
#- name: cache opam
|
|
||||||
# id: cache-opam
|
|
||||||
# uses: actions/cache@v2
|
|
||||||
# with:
|
|
||||||
# path: _opam
|
|
||||||
# key: opam-${{matrix.operating-system}}-${{matrix.ocaml-version}}
|
|
||||||
- run: opam pin -n .
|
- run: opam pin -n .
|
||||||
- run: opam depext -yt sidekick-bin
|
- run: opam depext -yt sidekick sidekick-bin
|
||||||
#if: steps.cache-opam.outputs.cache-hit != 'true'
|
|
||||||
- run: opam install -t . --deps-only
|
- run: opam install -t . --deps-only
|
||||||
#if: steps.cache-opam.outputs.cache-hit != 'true'
|
|
||||||
- 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'}}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue