Skip to content

Commit 3ecfb80

Browse files
committed
Update GitHub Actions workflow
Signed-off-by: Sora Morimoto <[email protected]>
1 parent dec289d commit 3ecfb80

File tree

3 files changed

+60
-10
lines changed

3 files changed

+60
-10
lines changed

.github/workflows/workflow.yml

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
1-
name: Main workflow
1+
name: Builds, tests & co
22

33
on:
4-
pull_request:
54
push:
5+
pull_request:
66
schedule:
77
# Prime the caches every Monday
88
- cron: 0 1 * * MON
99

10+
permissions: read-all
11+
1012
jobs:
1113
build:
1214
strategy:
1315
fail-fast: false
1416
matrix:
1517
os:
16-
- macos-latest
1718
- ubuntu-latest
19+
- macos-latest
1820
- windows-latest
1921
ocaml-compiler:
20-
- "4.14"
21-
- "5.2"
22+
- 5
23+
- 4
2224
include:
2325
- os: ubuntu-latest
2426
ocaml-compiler: "4.08"
@@ -40,10 +42,48 @@ jobs:
4042
uses: ocaml/setup-ocaml@v3
4143
with:
4244
ocaml-compiler: ${{ matrix.ocaml-compiler }}
43-
opam-pin: false
4445

4546
- run: opam install . --deps-only
4647

4748
- run: opam exec -- bash ./configure
4849

4950
- run: opam exec -- make all
51+
52+
lint-doc:
53+
runs-on: ubuntu-latest
54+
steps:
55+
- name: Checkout tree
56+
uses: actions/checkout@v4
57+
- name: Set-up OCaml
58+
uses: ocaml/setup-ocaml@v3
59+
with:
60+
ocaml-compiler: 5
61+
- run: opam install ocamlfind
62+
- run: opam exec -- bash ./configure
63+
- uses: ocaml/setup-ocaml/lint-doc@v3
64+
65+
lint-fmt:
66+
runs-on: ubuntu-latest
67+
steps:
68+
- name: Checkout tree
69+
uses: actions/checkout@v4
70+
- name: Set-up OCaml
71+
uses: ocaml/setup-ocaml@v3
72+
with:
73+
ocaml-compiler: 5
74+
- run: opam install ocamlfind
75+
- run: opam exec -- bash ./configure
76+
- uses: ocaml/setup-ocaml/lint-fmt@v3
77+
78+
lint-opam:
79+
runs-on: ubuntu-latest
80+
steps:
81+
- name: Checkout tree
82+
uses: actions/checkout@v4
83+
- name: Set-up OCaml
84+
uses: ocaml/setup-ocaml@v3
85+
with:
86+
ocaml-compiler: 5
87+
- run: opam install ocamlfind
88+
- run: opam exec -- bash ./configure
89+
- uses: ocaml/setup-ocaml/lint-opam@v3

src/baselib/dune

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@
1212
(wrapped false)
1313
(flags
1414
(:standard -no-keep-locs))
15-
(modules dynlink_wrapper ocsigen_cache ocsigen_config_static ocsigen_lib
16-
ocsigen_loader ocsigen_stream)
15+
(modules
16+
dynlink_wrapper
17+
ocsigen_cache
18+
ocsigen_config_static
19+
ocsigen_lib
20+
ocsigen_loader
21+
ocsigen_stream)
1722
(libraries
1823
str
1924
findlib

src/server/dune

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@
22
(name ocsigenserver)
33
(public_name ocsigenserver)
44
(wrapped false)
5-
(libraries xml-light cohttp-lwt-unix polytables ocsigen_cookie_map baselib
6-
http))
5+
(libraries
6+
xml-light
7+
cohttp-lwt-unix
8+
polytables
9+
ocsigen_cookie_map
10+
baselib
11+
http))

0 commit comments

Comments
 (0)