-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dfa19a7
commit 88ce0f3
Showing
4 changed files
with
54 additions
and
3 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,50 @@ | ||
name: build | ||
run-name: Build Bam | ||
on: [push] | ||
|
||
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | ||
permissions: | ||
pages: write # to deploy to Pages | ||
id-token: write # to verify the deployment originates from an appropriate source | ||
|
||
jobs: | ||
build_matrix: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ocaml-compiler: [ | ||
# OCaml LTS version | ||
ocaml.4.14.1, | ||
# ocaml-system for Fedora 39 | ||
ocaml.5.0.0, | ||
# ocaml-system for Archlinux | ||
ocaml.5.1.0 | ||
] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: setting up opam... | ||
uses: ocaml/setup-ocaml@v2 | ||
with: | ||
ocaml-compiler: ${{ matrix.ocaml-compiler }} | ||
- name: Install dependencies | ||
run: | | ||
opam update | ||
opam upgrade | ||
opam install . --deps-only -t | ||
- name: Build Bam | ||
run: | | ||
eval $(opam env) | ||
dune build . | ||
- name: Build documentation | ||
run: | | ||
eval $(opam env) | ||
opam install odoc | ||
dune build @doc | ||
- name: Upload Pages artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: _build/default/_doc/_html | ||
name: github-pages | ||
|
||
- name: Deploy to GitHub pages | ||
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action |
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
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
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