-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
22 changed files
with
2,200 additions
and
1,437 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,54 @@ | ||
name: Main workflow | ||
|
||
on: | ||
pull_request: | ||
push: | ||
schedule: | ||
# Prime the caches every Monday | ||
- cron: 0 1 * * MON | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
# - macos-latest | ||
- ubuntu-latest | ||
ocaml-compiler: | ||
- 5.0.0 | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use OCaml ${{ matrix.ocaml-compiler }} | ||
uses: ocaml/setup-ocaml@v2 | ||
with: | ||
ocaml-compiler: ${{ matrix.ocaml-compiler }} | ||
opam-pin: false | ||
opam-depext: false | ||
# - run: opam install . --deps-only | ||
# z3 takes a long time to build and isn't needed for the web build | ||
# - run: opam install menhir ppx_expect z3 brr js_of_ocaml-compiler | ||
- run: opam install dune menhir ppx_deriving ppx_expect brr js_of_ocaml-compiler | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 19 | ||
- run: npm install -g browserify | ||
- run: npm install z3-solver | ||
|
||
- run: eval $(opam env); dune build @web --profile release | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
if: github.ref == 'refs/heads/StagedSL' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: _build/default/deploy |
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 |
---|---|---|
|
@@ -3,3 +3,5 @@ _build/ | |
*.conflicts | ||
boot/menhir/*.ml* | ||
.DS_Store | ||
node_modules | ||
package*.json |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
; build web version | ||
|
||
(rule | ||
(action (copy parsing/hipjs.bc.js hipjs.bc.js))) | ||
(rule | ||
(action (copy web/main.js main.js))) | ||
|
||
(rule | ||
(target coi-serviceworker.min.js) | ||
(action (run curl -sOL https://raw.githubusercontent.com/gzuidhof/coi-serviceworker/master/coi-serviceworker.min.js))) | ||
|
||
(rule | ||
(alias web) | ||
(deps coi-serviceworker.min.js hipjs.bc.js bundle.js z3-built.js z3-built.wasm z3-built.worker.js) | ||
(action (copy web/index.html index.html))) | ||
|
||
(rule | ||
(targets z3-built.js z3-built.wasm z3-built.worker.js) | ||
(deps (source_tree node_modules)) | ||
(action (progn | ||
(run cp node_modules/z3-solver/build/z3-built.wasm z3-built.wasm) | ||
(run cp node_modules/z3-solver/build/z3-built.worker.js z3-built.worker.js) | ||
(run cp node_modules/z3-solver/build/z3-built.js z3-built.js)))) | ||
|
||
(rule | ||
(targets bundle.js) | ||
(deps main.js) | ||
(action (run browserify main.js -o bundle.js --standalone z3))) | ||
|
||
(rule | ||
(alias web) | ||
(targets (dir deploy)) | ||
(deps coi-serviceworker.min.js hipjs.bc.js bundle.js index.html z3-built.js z3-built.wasm z3-built.worker.js) | ||
(action (progn | ||
(run mkdir deploy) | ||
(run cp %{deps} %{targets})))) |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
(lang dune 2.7) | ||
(lang dune 3.7) | ||
(using experimental_building_ocaml_compiler_with_dune 0.1) | ||
(using coq 0.2) | ||
(cram enable) | ||
(cram enable) | ||
(using directory-targets 0.1) |
Oops, something went wrong.