Skip to content

Commit ec023b3

Browse files
authored
Update GitHub Actions workflow (#252)
Signed-off-by: Sora Morimoto <[email protected]>
1 parent dec289d commit ec023b3

File tree

4 files changed

+64
-10
lines changed

4 files changed

+64
-10
lines changed

.github/workflows/workflow.yml

Lines changed: 49 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,51 @@ 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 . --deps-only
62+
# - run: opam exec -- bash ./configure
63+
# - run: opam exec -- make all
64+
# - uses: ocaml/setup-ocaml/lint-doc@v3
65+
66+
lint-fmt:
67+
runs-on: ubuntu-latest
68+
steps:
69+
- name: Checkout tree
70+
uses: actions/checkout@v4
71+
- name: Set-up OCaml
72+
uses: ocaml/setup-ocaml@v3
73+
with:
74+
ocaml-compiler: 5
75+
- run: opam install . --deps-only
76+
- run: opam exec -- bash ./configure
77+
- run: opam exec -- make all
78+
- uses: ocaml/setup-ocaml/lint-fmt@v3
79+
80+
# lint-opam:
81+
# runs-on: ubuntu-latest
82+
# steps:
83+
# - name: Checkout tree
84+
# uses: actions/checkout@v4
85+
# - name: Set-up OCaml
86+
# uses: ocaml/setup-ocaml@v3
87+
# with:
88+
# ocaml-compiler: 5
89+
# - run: opam install . --deps-only
90+
# - run: opam exec -- bash ./configure
91+
# - run: opam exec -- make all
92+
# - uses: ocaml/setup-ocaml/lint-opam@v3

.ocamlformat-ignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/baselib/ocsigen_config_static.ml

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)