File tree Expand file tree Collapse file tree 3 files changed +41
-24
lines changed Expand file tree Collapse file tree 3 files changed +41
-24
lines changed Original file line number Diff line number Diff line change 8
8
fail-fast : false
9
9
matrix :
10
10
ghc :
11
- - " 8.10.7"
12
- - " 9.0.2"
13
- - " 9.2.8"
11
+ # - "8.10.7"
12
+ # - "9.0.2"
13
+ # - "9.2.8"
14
14
- " 9.4.8"
15
15
- " 9.6.5"
16
16
- " 9.8.2"
17
- # k8s_release:
18
- # # Choose a subset of these to ease the load on CI
19
- # - "1.25"
20
- # - "1.26"
21
- # - "1.27"
22
- # - "1.28"
23
- # - "1.29"
24
- # - "1.30"
17
+ k8s_release :
18
+ # Choose a subset of these to ease the load on CI
19
+ # - "1.20"
20
+ # - "1.21"
21
+ # - "1.22"
22
+ # - "1.23"
23
+ # - "1.24"
24
+ - " 1.25"
25
+ - " 1.26"
26
+ - " 1.27"
27
+ - " 1.28"
28
+ - " 1.29"
29
+ - " 1.30"
25
30
steps :
26
31
- uses : actions/checkout@v4
27
32
- uses : haskell-actions/setup@v2
28
33
with :
29
34
ghc-version : ${{ matrix.compiler.ghc }}
30
35
cabal-version : ' 3.8.1.0'
31
- - run : cabal build all --enable-tests
32
- - run : cabal test all
36
+ - run : |
37
+ nix run .#set-cabal-version -- "${{matrix.k8s_release}}" cabal.project
38
+ cabal build all --enable-tests
39
+ - run : |
40
+ cabal test all
33
41
34
42
stack :
35
43
name : Stack / Kubernetes ${{ matrix.k8s_release }} / GHC ${{ matrix.compiler.ghc }}
36
44
runs-on : ubuntu-latest
37
45
strategy :
38
46
fail-fast : false
47
+ # This full matrix at time of writing is 11 K8S versions * 7 compiler versions = 77,
48
+ # which is a little big for CI.
49
+ # Commented some older versions of each to make it manageable.
39
50
matrix :
40
51
k8s_release :
41
- # Choose a subset of these to ease the load on CI
42
52
# - "1.20"
43
53
# - "1.21"
44
54
# - "1.22"
@@ -51,14 +61,14 @@ jobs:
51
61
- " 1.29"
52
62
- " 1.30"
53
63
compiler :
54
- - ghc : " 8.10.7"
55
- yaml : " stack-8.10.7.yaml"
56
- - ghc : " 9.0.2"
57
- yaml : " stack-9.0.2-aeson1.yaml"
58
- - ghc : " 9.0.2"
59
- yaml : " stack-9.0.2-aeson2.yaml"
60
- - ghc : " 9.2.8"
61
- yaml : " stack-9.2.8.yaml"
64
+ # - ghc: "8.10.7"
65
+ # yaml: "stack-8.10.7.yaml"
66
+ # - ghc: "9.0.2"
67
+ # yaml: "stack-9.0.2-aeson1.yaml"
68
+ # - ghc: "9.0.2"
69
+ # yaml: "stack-9.0.2-aeson2.yaml"
70
+ # - ghc: "9.2.8"
71
+ # yaml: "stack-9.2.8.yaml"
62
72
- ghc : " 9.4.8"
63
73
yaml : " stack-9.4.8.yaml"
64
74
- ghc : " 9.6.5"
Original file line number Diff line number Diff line change 1
1
packages :
2
- kubernetes
2
+ kubernetes-1.20
3
3
kubernetes-client
4
- examples
4
+ examples
Original file line number Diff line number Diff line change 38
38
39
39
${ pkgs . gnused } /bin/sed -i "s/^- kubernetes-\(1\.\)[0-9]\+/- kubernetes-$KUBERNETES_VERSION/" "$STACK_YAML"
40
40
'' ;
41
+
42
+ set-cabal-version = pkgs . writeShellScriptBin "build-kubernetes-client.sh" ''
43
+ export KUBERNETES_VERSION="$1"
44
+ CABAL_PROJECT="$2"
45
+
46
+ ${ pkgs . gnused } /bin/sed -i "s/^ kubernetes-\(1\.\)[0-9]\+/- kubernetes-$KUBERNETES_VERSION/" "$CABAL_PROJECT"
47
+ '' ;
41
48
} ;
42
49
} ) ;
43
50
}
You can’t perform that action at this time.
0 commit comments