@@ -200,19 +200,24 @@ func doInstall(cmdline []string) {
200200 staticlink = flag .Bool ("static" , false , "Create statically-linked executable" )
201201 )
202202 flag .CommandLine .Parse (cmdline )
203+ env := build .Env ()
203204
204205 // Configure the toolchain.
205206 tc := build.GoToolchain {GOARCH : * arch , CC : * cc }
206207 if * dlgo {
207208 csdb := build .MustLoadChecksums ("build/checksums.txt" )
208209 tc .Root = build .DownloadGo (csdb , dlgoVersion )
209210 }
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+ }
213219
214220 // Configure the build.
215- env := build .Env ()
216221 gobuild := tc .Go ("build" , buildFlags (env , * staticlink , buildTags )... )
217222
218223 // arm64 CI builders are memory-constrained and can't handle concurrent builds,
@@ -298,10 +303,14 @@ func doTest(cmdline []string) {
298303 csdb := build .MustLoadChecksums ("build/checksums.txt" )
299304 tc .Root = build .DownloadGo (csdb , dlgoVersion )
300305 }
301- gotest := tc .Go ("test" , "-tags=ckzg" )
306+ gotest := tc .Go ("test" )
307+
302308 // CI needs a bit more time for the statetests (default 10m).
303309 gotest .Args = append (gotest .Args , "-timeout=20m" )
304310
311+ // Enable CKZG backend in CI.
312+ gotest .Args = append (gotest .Args , "-tags=ckzg" )
313+
305314 // Test a single package at a time. CI builders are slow
306315 // and some tests run into timeouts under load.
307316 gotest .Args = append (gotest .Args , "-p" , "1" )
0 commit comments