File tree 3 files changed +18
-6
lines changed
3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
strategy :
11
11
matrix :
12
- ocamlVersion : [4_08, 4_09, 4_10]
12
+ ocamlVersion : [4_08, 4_09, 4_10, 4_11 ]
13
13
steps :
14
14
- uses : actions/checkout@v2
15
15
- uses : cachix/install-nix-action@v8
Original file line number Diff line number Diff line change 1
1
{ pkgs ? import ./sources.nix { inherit ocamlVersion ; }
2
- , ocamlVersion ? "4_09 " } :
2
+ , ocamlVersion ? "4_10 " } :
3
3
4
4
let
5
5
inherit ( pkgs ) lib stdenv ocamlPackages ;
6
6
in
7
7
8
8
with ocamlPackages ;
9
9
let
10
+ genSrc = { dirs , files } : lib . filterGitSource {
11
+ src = ./.. ;
12
+ inherit dirs ;
13
+ files = files ++ [ "dune-project" ] ;
14
+ } ;
10
15
build-lambda-runtime = args : buildDunePackage ( {
11
16
useDune2 = true ;
12
17
version = "0.1.0-dev" ;
13
- src = lib . gitignoreSource ./.. ;
14
18
} // args ) ;
15
19
16
20
in rec {
17
21
lambda-runtime = build-lambda-runtime {
18
22
pname = "lambda-runtime" ;
23
+ src = genSrc {
24
+ dirs = [ "lib" ] ;
25
+ files = [ "lambda-runtime.opam" ] ;
26
+ } ;
19
27
buildInputs = [ alcotest ] ;
20
28
doCheck = false ;
21
- propagatedBuildInputs = [ yojson ppx_deriving_yojson piaf uri logs lwt4 ] ;
29
+ propagatedBuildInputs = [ yojson ppx_deriving_yojson piaf uri logs lwt ] ;
22
30
} ;
23
31
24
32
now = build-lambda-runtime {
25
33
pname = "now" ;
34
+ src = genSrc {
35
+ dirs = [ "now" "test" ] ;
36
+ files = [ "now.opam" ] ;
37
+ } ;
26
38
buildInputs = [ alcotest ] ;
27
39
# tests lambda-runtime too
28
40
doCheck = true ;
31
43
httpaf
32
44
yojson
33
45
ppx_deriving_yojson
34
- lwt4
46
+ lwt
35
47
base64
36
48
] ;
37
49
} ;
Original file line number Diff line number Diff line change 3
3
let
4
4
overlays =
5
5
builtins . fetchTarball
6
- https://github.com/anmonteiro/nix-overlays/archive/3fb1555 .tar.gz ;
6
+ https://github.com/anmonteiro/nix-overlays/archive/957c4eb .tar.gz ;
7
7
8
8
in
9
9
You can’t perform that action at this time.
0 commit comments