Update GitHub Actions workflow #38
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
name: Main workflow | |
on: | |
push: | |
pull_request: | |
schedule: | |
# Prime the caches every Monday | |
- cron: 0 1 * * MON | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout tree | |
uses: actions/checkout@v4 | |
- name: Set-up OCaml | |
uses: ocaml/setup-ocaml@v2 | |
with: | |
ocaml-compiler: "4.14" | |
dune-cache: true | |
allow-prerelease-opam: true | |
# ideally it should be done by `opam install . --deps-only` but right now | |
# we have opam 1.x in the repo, and I'm not very optimistic to even try it | |
- run: opam install cairo2 calendar conf-dbm eliom ocsigen-ppx-rpc ocsigen-toolkit ocsipersist-dbm pgocaml_ppx syndic | |
- name: Compiling simple | |
run: opam exec -- dune build @all | |
working-directory: simple | |
- name: Compiling extended | |
run: opam exec -- make all | |
working-directory: extended |