Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 49 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,51 @@ 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 install . --deps-only
# - run: opam exec -- bash ./configure
# - run: opam exec -- make all
# - 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
- run: opam install . --deps-only
- run: opam exec -- bash ./configure
- run: opam exec -- make all
- 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 install . --deps-only
# - run: opam exec -- bash ./configure
# - run: opam exec -- make all
# - uses: ocaml/setup-ocaml/lint-opam@v3
1 change: 1 addition & 0 deletions .ocamlformat-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/baselib/ocsigen_config_static.ml
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))
Loading