@@ -200,19 +200,24 @@ func doInstall(cmdline []string) {
200
200
staticlink = flag .Bool ("static" , false , "Create statically-linked executable" )
201
201
)
202
202
flag .CommandLine .Parse (cmdline )
203
+ env := build .Env ()
203
204
204
205
// Configure the toolchain.
205
206
tc := build.GoToolchain {GOARCH : * arch , CC : * cc }
206
207
if * dlgo {
207
208
csdb := build .MustLoadChecksums ("build/checksums.txt" )
208
209
tc .Root = build .DownloadGo (csdb , dlgoVersion )
209
210
}
210
- // Disable CLI markdown doc generation in release builds and enable linking
211
- // the CKZG library since we can make it portable here.
212
- buildTags := []string {"urfave_cli_no_docs" , "ckzg" }
211
+
212
+ // Disable CLI markdown doc generation in release builds.
213
+ buildTags := []string {"urfave_cli_no_docs" }
214
+
215
+ // Enable linking the CKZG library since we can make it work with additional flags.
216
+ if env .UbuntuVersion != "trusty" {
217
+ buildTags = append (buildTags , "ckzg" )
218
+ }
213
219
214
220
// Configure the build.
215
- env := build .Env ()
216
221
gobuild := tc .Go ("build" , buildFlags (env , * staticlink , buildTags )... )
217
222
218
223
// arm64 CI builders are memory-constrained and can't handle concurrent builds,
@@ -298,10 +303,14 @@ func doTest(cmdline []string) {
298
303
csdb := build .MustLoadChecksums ("build/checksums.txt" )
299
304
tc .Root = build .DownloadGo (csdb , dlgoVersion )
300
305
}
301
- gotest := tc .Go ("test" , "-tags=ckzg" )
306
+ gotest := tc .Go ("test" )
307
+
302
308
// CI needs a bit more time for the statetests (default 10m).
303
309
gotest .Args = append (gotest .Args , "-timeout=20m" )
304
310
311
+ // Enable CKZG backend in CI.
312
+ gotest .Args = append (gotest .Args , "-tags=ckzg" )
313
+
305
314
// Test a single package at a time. CI builders are slow
306
315
// and some tests run into timeouts under load.
307
316
gotest .Args = append (gotest .Args , "-p" , "1" )
0 commit comments