Check Build WWW #63
This file contains hidden or 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
| name: Check Build WWW | |
| on: | |
| pull_request: | |
| paths: | |
| - '.github/workflows/check-build-www.yml' | |
| - 'asllib/aslref.ml' | |
| - 'asllib/asllib-www' | |
| workflow_dispatch: | |
| inputs: | |
| pr_number: | |
| description: "Optional PR number to build (uses refs/pull/<n>/head)" | |
| required: false | |
| type: string | |
| schedule: | |
| - cron: '0 8 * * 0' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout PR head ref (if provided) | |
| if: ${{ github.event.inputs.pr_number != '' }} | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: refs/pull/${{ github.event.inputs.pr_number }}/head | |
| - name: Checkout default branch | |
| if: ${{ github.event.inputs.pr_number == '' }} | |
| uses: actions/checkout@v4 | |
| - name: Set-up OCaml 5 | |
| uses: ocaml/setup-ocaml@v3 | |
| with: | |
| ocaml-compiler: 5.1.0 | |
| - run: | | |
| opam install dune menhir zarith js_of_ocaml.5.4.0 js_of_ocaml-ppx zarith_stubs_js logs | |
| opam exec -- make Version.ml | |
| opam exec -- dune build tools/cat2html.exe | |
| opam exec -- make -C herd-www | |
| build-aslref-js: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout head | |
| uses: actions/checkout@v4 | |
| - name: Set-up OCaml 5 | |
| uses: ocaml/setup-ocaml@v3 | |
| with: | |
| ocaml-compiler: 5 | |
| - run: | | |
| opam install dune menhir zarith js_of_ocaml js_of_ocaml-ppx zarith_stubs_js logs | |
| opam exec -- make Version.ml | |
| opam exec -- dune build --profile=release asllib/asllib-www |