20
20
matrix :
21
21
os : [ubuntu-latest, macos-11]
22
22
module : [rules_haskell, rules_haskell_nix, rules_haskell_tests]
23
- bzlmod : [bzlmod, workspace ]
23
+ bzlmod : [true, false ]
24
24
ghc :
25
25
- 9.2.5
26
26
- 9.4.5
@@ -62,16 +62,11 @@ jobs:
62
62
else
63
63
cache_setting="--remote_header=x-buildbuddy-api-key=$BUILDBUDDY_API_KEY"
64
64
fi
65
- if [ ${{ matrix.bzlmod }} == bzlmod ]; then
66
- bzlmod_setting='common --config bzlmod'
67
- else
68
- bzlmod_setting=''
69
- fi
70
65
cat >.bazelrc.local <<EOF
71
66
common --config=ci
72
67
build --config=$BUILD_CONFIG
73
68
build $cache_setting
74
- $bzlmod_setting
69
+ common --enable_bzlmod=${{ matrix.bzlmod }}
75
70
EOF
76
71
cp .bazelrc.local rules_haskell_nix
77
72
cp .bazelrc.local rules_haskell_tests
@@ -121,7 +116,7 @@ jobs:
121
116
matrix :
122
117
os : [ubuntu-latest, macos-11, windows-latest]
123
118
module : [rules_haskell, rules_haskell_tests]
124
- bzlmod : [bzlmod, workspace ]
119
+ bzlmod : [true, false ]
125
120
ghc :
126
121
- 9.2.5
127
122
- 9.4.5
@@ -168,16 +163,15 @@ jobs:
168
163
else
169
164
cache_setting="--remote_header=x-buildbuddy-api-key=$BUILDBUDDY_API_KEY"
170
165
fi
171
- if [ ${{ matrix.bzlmod }} == bzlmod ]; then
172
- bzlmod_setting='common --config bzlmod'
173
- else
174
- bzlmod_setting=''
175
- fi
176
166
if [[ ${{ runner.os }} == Windows ]]; then
177
167
output_root_setting="startup --output_user_root=C:/_bzl"
178
168
# On windows, we use a separate remote cache for bzlmod,
179
169
# because the c dependency analysis is leaking absolute paths which are different
180
- bzlmod_cache_silo_key="build --remote_default_exec_properties=bzlmod-cache-silo-key=${{ matrix.bzlmod }}"
170
+ if ${{ matrix.bzlmod }}; then
171
+ bzlmod_cache_silo_key='build --remote_default_exec_properties=bzlmod-cache-silo-key=bzlmod'
172
+ else
173
+ bzlmod_cache_silo_key='build --remote_default_exec_properties=bzlmod-cache-silo-key=workspace'
174
+ fi
181
175
else
182
176
output_root_setting=""
183
177
bzlmod_cache_silo_key=""
@@ -188,7 +182,7 @@ jobs:
188
182
build $cache_setting
189
183
$output_root_setting
190
184
$bzlmod_cache_silo_key
191
- $bzlmod_setting
185
+ common --enable_bzlmod=${{ matrix.bzlmod }}
192
186
EOF
193
187
cp .bazelrc.local rules_haskell_tests
194
188
cat >~/.netrc <<EOF
0 commit comments