Skip to content

Build Bam

Build Bam #12

Workflow file for this run

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
# Deploy to the github-pages environment
environment:

Check failure on line 11 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 11, Col: 1): Unexpected value 'environment'
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
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