Skip to content

Commit 5dee70c

Browse files
authored
Fix dependencies (#227)
1 parent 55605b5 commit 5dee70c

File tree

14 files changed

+76
-34
lines changed

14 files changed

+76
-34
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,32 @@ jobs:
2424
- name: Checkout code
2525
uses: actions/checkout@v2
2626

27-
- name: Retrieve opam cache
28-
uses: actions/cache@v2
29-
if: runner.os != 'Windows'
30-
id: cache-opam
31-
with:
32-
path: ~/.opam
33-
key: v1-${{ runner.os }}-opam-${{ matrix.ocaml-version }}-${{ hashFiles('*.opam.locked') }}
34-
restore-keys: |
35-
v1-${{ runner.os }}-opam-${{ matrix.ocaml-version }}-
27+
# - name: Retrieve opam cache
28+
# uses: actions/cache@v2
29+
# if: runner.os != 'Windows'
30+
# id: cache-opam
31+
# with:
32+
# path: ~/.opam
33+
# key: v1-${{ runner.os }}-opam-${{ matrix.ocaml-version }}-${{ hashFiles('*.opam.locked') }}
34+
# restore-keys: |
35+
# v1-${{ runner.os }}-opam-${{ matrix.ocaml-version }}-
3636

3737
- name: Use OCaml ${{ matrix.ocaml-version }}
3838
uses: avsm/setup-ocaml@v1
3939
with:
4040
ocaml-version: ${{ matrix.ocaml-version }}
4141

42+
- name: Print OCaml version
43+
run: opam exec -- ocaml --version
44+
45+
- name: Install system dependencies
46+
if: runner.os == 'Windows'
47+
run: opam depext conf-pkg-config
48+
49+
- name: Update opam repository
50+
if: steps.cache-opam.outputs.cache-hit != 'true'
51+
run: opam update
52+
4253
- name: Install dependencies
4354
if: steps.cache-opam.outputs.cache-hit != 'true'
4455
run: |
@@ -53,7 +64,7 @@ jobs:
5364
run: make build
5465

5566
- name: Check formatting
56-
run: make format
67+
run: make fmt
5768

5869
- name: Run tests
5970
run: make test

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ doc:
3535
doc-path:
3636
@echo "_build/default/_doc/_html/index.html"
3737

38-
.PHONY: format
39-
format:
38+
.PHONY: fmt
39+
fmt:
4040
opam exec -- dune build @fmt --auto-promote
4141

4242
.PHONY: watch

README.cpp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ $ opam install opium
2929
### Master
3030

3131
```
32-
$ opam pin add rock --dev-repo
33-
$ opam pin add opium --dev-repo
32+
$ opam pin add rock.~dev https://github.com/rgrinberg/opium.git
33+
$ opam pin add opium.~dev https://github.com/rgrinberg/opium.git
3434
```
3535

3636
## Documentation

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ $ opam install opium
2929
### Master
3030

3131
```
32-
$ opam pin add rock --dev-repo
33-
$ opam pin add opium --dev-repo
32+
$ opam pin add rock.~dev https://github.com/rgrinberg/opium.git
33+
$ opam pin add opium.~dev https://github.com/rgrinberg/opium.git
3434
```
3535

3636
## Documentation

dune-project

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
(lang dune 1.11)
2-
3-
(using fmt 1.2)
1+
(lang dune 2.0)
42

53
(name opium)
64

@@ -26,8 +24,6 @@
2624
(depends
2725
(ocaml
2826
(>= 4.08))
29-
(dune
30-
(>= 1.11))
3127
(lwt
3228
(>= 5.3.0))
3329
bigstringaf
@@ -44,14 +40,13 @@
4440
(depends
4541
(ocaml
4642
(>= 4.08))
47-
(dune
48-
(>= 1.11))
4943
(rock
5044
(= :version))
5145
(lwt
5246
(>= 5.3.0))
5347
httpaf-lwt-unix
5448
logs
49+
fmt
5550
mtime
5651
cmdliner
5752
ptime
@@ -75,8 +70,6 @@
7570
(depends
7671
(ocaml
7772
(>= 4.08))
78-
(dune
79-
(>= 1.11))
8073
(opium
8174
(= :version))
8275
alcotest

dune-workspace.dev

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
(lang dune 2.0)
2+
3+
(context
4+
(opam
5+
(switch 4.08.1)))
6+
7+
(context
8+
(opam
9+
(switch 4.09.1)))
10+
11+
(context
12+
(opam
13+
(switch 4.10.1)))

opium-testing.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ homepage: "https://github.com/rgrinberg/opium"
1010
doc: "https://rgrinberg.github.io/opium/"
1111
bug-reports: "https://github.com/rgrinberg/opium/issues"
1212
depends: [
13+
"dune" {>= "2.0"}
1314
"ocaml" {>= "4.08"}
14-
"dune" {>= "1.11"}
1515
"opium" {= version}
1616
"alcotest"
1717
"alcotest-lwt"

opium-testing.opam.locked

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ depends: [
2020
"base-unix" {= "base"}
2121
"base64" {= "3.4.0"}
2222
"bigarray-compat" {= "1.0.0"}
23-
"bigstringaf" {= "0.6.1"}
23+
"bigstringaf" {= "0.7.0"}
2424
"biniou" {= "1.2.1"}
2525
"cmdliner" {= "1.0.4"}
2626
"conf-m4" {= "1"}
@@ -43,7 +43,7 @@ depends: [
4343
"lwt" {= "5.3.0"}
4444
"lwt_ppx" {= "2.0.1"}
4545
"magic-mime" {= "1.1.2"}
46-
"mirage-crypto" {= "0.8.6"}
46+
"mirage-crypto" {= "0.8.7"}
4747
"mmap" {= "1.1.0"}
4848
"mtime" {= "1.2.0"}
4949
"multipart-form-data" {= "0.3.0"}

opium.opam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ homepage: "https://github.com/rgrinberg/opium"
1010
doc: "https://rgrinberg.github.io/opium/"
1111
bug-reports: "https://github.com/rgrinberg/opium/issues"
1212
depends: [
13+
"dune" {>= "2.0"}
1314
"ocaml" {>= "4.08"}
14-
"dune" {>= "1.11"}
1515
"rock" {= version}
1616
"lwt" {>= "5.3.0"}
1717
"httpaf-lwt-unix"
1818
"logs"
19+
"fmt"
1920
"mtime"
2021
"cmdliner"
2122
"ptime"

opium.opam.locked

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ depends: [
2020
"base-unix" {= "base"}
2121
"base64" {= "3.4.0"}
2222
"bigarray-compat" {= "1.0.0"}
23-
"bigstringaf" {= "0.6.1"}
23+
"bigstringaf" {= "0.7.0"}
2424
"biniou" {= "1.2.1"}
2525
"cmdliner" {= "1.0.4"}
2626
"conf-m4" {= "1"}
@@ -43,7 +43,7 @@ depends: [
4343
"lwt" {= "5.3.0"}
4444
"lwt_ppx" {= "2.0.1"}
4545
"magic-mime" {= "1.1.2"}
46-
"mirage-crypto" {= "0.8.6"}
46+
"mirage-crypto" {= "0.8.7"}
4747
"mmap" {= "1.1.0"}
4848
"mtime" {= "1.2.0"}
4949
"multipart-form-data" {= "0.3.0"}

0 commit comments

Comments
 (0)