Skip to content

Commit

Permalink
Update GitHub Actions workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <sora@morimoto.io>
  • Loading branch information
smorimoto committed Dec 24, 2024
1 parent dec289d commit bbce064
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 10 deletions.
48 changes: 42 additions & 6 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
name: Main workflow
name: Builds, tests & co

on:
pull_request:
push:
pull_request:
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON

permissions: read-all

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- macos-latest
- windows-latest
ocaml-compiler:
- "4.14"
- "5.2"
- 5
- 4
include:
- os: ubuntu-latest
ocaml-compiler: "4.08"
Expand All @@ -40,10 +42,44 @@ jobs:
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-pin: false

- run: opam install . --deps-only

- run: opam exec -- bash ./configure

- run: opam exec -- make all

lint-doc:
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 5
- run: opam exec -- bash ./configure
- uses: ocaml/setup-ocaml/lint-doc@v3

lint-fmt:
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 5
- uses: ocaml/setup-ocaml/lint-fmt@v3

lint-opam:
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 5
- run: opam exec -- bash ./configure
- uses: ocaml/setup-ocaml/lint-opam@v3
9 changes: 7 additions & 2 deletions src/baselib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@
(wrapped false)
(flags
(:standard -no-keep-locs))
(modules dynlink_wrapper ocsigen_cache ocsigen_config_static ocsigen_lib
ocsigen_loader ocsigen_stream)
(modules
dynlink_wrapper
ocsigen_cache
ocsigen_config_static
ocsigen_lib
ocsigen_loader
ocsigen_stream)
(libraries
str
findlib
Expand Down
9 changes: 7 additions & 2 deletions src/server/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@
(name ocsigenserver)
(public_name ocsigenserver)
(wrapped false)
(libraries xml-light cohttp-lwt-unix polytables ocsigen_cookie_map baselib
http))
(libraries
xml-light
cohttp-lwt-unix
polytables
ocsigen_cookie_map
baselib
http))

0 comments on commit bbce064

Please sign in to comment.