-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from c-cube/update-ci
CI: move to github actions
- Loading branch information
Showing
4 changed files
with
75 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 qcheck-ounit qcheck-core qcheck | ||
|
||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: build | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
run: | ||
name: Build | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
#- macos-latest | ||
#- windows-latest | ||
ocaml-compiler: | ||
- 4.03.x | ||
- 4.12.x | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ocaml/setup-ocaml@v2 | ||
with: | ||
ocaml-compiler: ${{ matrix.ocaml-compiler }} | ||
- run: opam pin -n . | ||
- run: opam depext -yt ocaml-protoc | ||
- run: opam install -t . --deps-only | ||
- run: opam exec -- dune build @install | ||
- run: opam exec -- dune runtest |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters