File tree Expand file tree Collapse file tree 7 files changed +46
-12
lines changed Expand file tree Collapse file tree 7 files changed +46
-12
lines changed Original file line number Diff line number Diff line change
1
+ name : Main workflow
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ schedule :
7
+ # Prime the caches every Monday
8
+ - cron : 0 1 * * MON
9
+
10
+ jobs :
11
+ build :
12
+ strategy :
13
+ fail-fast : false
14
+ matrix :
15
+ os :
16
+ - macos-latest
17
+ - windows-latest
18
+ ocaml-compiler :
19
+ - 4.13.x
20
+
21
+ runs-on : ${{ matrix.os }}
22
+
23
+ steps :
24
+ - name : Checkout code
25
+ uses : actions/checkout@v2
26
+
27
+ - name : Use OCaml ${{ matrix.ocaml-compiler }}
28
+ uses : ocaml/setup-ocaml@v2
29
+ with :
30
+ ocaml-compiler : ${{ matrix.ocaml-compiler }}
31
+
32
+ - run : opam install . --deps-only --with-test
33
+
34
+ - run : opam exec -- dune build
35
+
36
+ - run : opam exec -- dune runtest
Original file line number Diff line number Diff line change @@ -13,23 +13,21 @@ depends: [
13
13
"ocaml" {>= "4.08.0"}
14
14
"capnp" {>= "3.1.0"}
15
15
"capnp-rpc-net" {= version}
16
- "astring" {with-test}
17
16
"fmt" {>= "0.8.7"}
18
17
"logs"
19
18
"dns-client" {>= "6.0.0"}
20
19
"tls-mirage"
21
- "mirage-stack" {>= "2.2.0"}
22
- "mirage-protocols" {>= "6.0.0"}
23
- "arp" {>= "2.3.0" & with-test}
20
+ "tcpip" {>= "7.0.0"}
24
21
"alcotest" {>= "1.0.1" & with-test}
25
22
"alcotest-lwt" {>= "1.0.1" & with-test}
23
+ "arp" {>= "3.0.0" & with-test}
24
+ "asetmap" {with-test}
25
+ "astring" {with-test}
26
+ "ethernet" {>= "3.0.0" & with-test}
26
27
"io-page-unix" {with-test}
27
- "tcpip" {>= "6.1.0" & with-test}
28
28
"mirage-vnetif" {with-test}
29
29
"mirage-crypto-rng" {>= "0.7.0" & with-test}
30
30
"dune" {>= "2.0"}
31
- "asetmap" {with-test}
32
- "ethernet" {>= "2.2.0" & with-test}
33
31
]
34
32
build: [
35
33
["dune" "build" "-p" name "-j" jobs]
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ module Log = Capnp_rpc.Debug.Log
4
4
5
5
module Location = Network. Location
6
6
7
- module Make (R : Mirage_random.S ) (T : Mirage_time.S ) (M : Mirage_clock.MCLOCK ) (P : Mirage_clock.PCLOCK ) (Stack : Mirage_stack .V4V6 ) = struct
7
+ module Make (R : Mirage_random.S ) (T : Mirage_time.S ) (M : Mirage_clock.MCLOCK ) (P : Mirage_clock.PCLOCK ) (Stack : Tcpip.Stack .V4V6 ) = struct
8
8
9
9
module Dns = Dns_client_mirage. Make (R )(T )(M )(P )(Stack )
10
10
module Network = Network. Make (R )(T )(M )(P )(Stack )
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ open Capnp_rpc_net
4
4
5
5
module Location = Network. Location
6
6
7
- module Make (R : Mirage_random.S ) (T : Mirage_time.S ) (M : Mirage_clock.MCLOCK ) (P : Mirage_clock.PCLOCK ) (Stack : Mirage_stack .V4V6 ) : sig
7
+ module Make (R : Mirage_random.S ) (T : Mirage_time.S ) (M : Mirage_clock.MCLOCK ) (P : Mirage_clock.PCLOCK ) (Stack : Tcpip.Stack .V4V6 ) : sig
8
8
include Capnp_rpc_net. VAT_NETWORK with
9
9
type flow = Stack.TCP .flow and
10
10
module Network = Network .Make (R )(T )(M )(P )(Stack )
Original file line number Diff line number Diff line change 1
1
(library
2
2
(name capnp_rpc_mirage)
3
3
(public_name capnp-rpc-mirage)
4
- (libraries capnp-rpc-lwt capnp-rpc-net capnp-rpc fmt logs mirage-stack dns-client.mirage))
4
+ (libraries capnp-rpc-lwt capnp-rpc-net capnp-rpc fmt logs dns-client.mirage tcpip ))
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ module Location = struct
17
17
let equal = ( = )
18
18
end
19
19
20
- module Make (R : Mirage_random.S ) (T : Mirage_time.S ) (M : Mirage_clock.MCLOCK ) (P : Mirage_clock.PCLOCK ) (Stack : Mirage_stack .V4V6 ) = struct
20
+ module Make (R : Mirage_random.S ) (T : Mirage_time.S ) (M : Mirage_clock.MCLOCK ) (P : Mirage_clock.PCLOCK ) (Stack : Tcpip.Stack .V4V6 ) = struct
21
21
22
22
module Dns = Dns_client_mirage. Make (R )(T )(M )(P )(Stack )
23
23
module Tls_wrapper = Capnp_rpc_net.Tls_wrapper. Make (Stack. TCP )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ module Location : sig
13
13
(* * [tcp ~host port] is [`TCP (host, port)]. *)
14
14
end
15
15
16
- module Make (R : Mirage_random.S ) (T : Mirage_time.S ) (M : Mirage_clock.MCLOCK ) (P : Mirage_clock.PCLOCK ) (Stack : Mirage_stack .V4V6 ) : sig
16
+ module Make (R : Mirage_random.S ) (T : Mirage_time.S ) (M : Mirage_clock.MCLOCK ) (P : Mirage_clock.PCLOCK ) (Stack : Tcpip.Stack .V4V6 ) : sig
17
17
18
18
module Dns : module type of Dns_client_mirage. Make (R )(T )(M )(P )(Stack )
19
19
You can’t perform that action at this time.
0 commit comments