|
|
|
@ -200,6 +200,7 @@ func doInstall(cmdline []string) { |
|
|
|
|
staticlink = flag.Bool("static", false, "Create statically-linked executable") |
|
|
|
|
) |
|
|
|
|
flag.CommandLine.Parse(cmdline) |
|
|
|
|
env := build.Env() |
|
|
|
|
|
|
|
|
|
// Configure the toolchain.
|
|
|
|
|
tc := build.GoToolchain{GOARCH: *arch, CC: *cc} |
|
|
|
@ -207,12 +208,16 @@ func doInstall(cmdline []string) { |
|
|
|
|
csdb := build.MustLoadChecksums("build/checksums.txt") |
|
|
|
|
tc.Root = build.DownloadGo(csdb, dlgoVersion) |
|
|
|
|
} |
|
|
|
|
// Disable CLI markdown doc generation in release builds and enable linking
|
|
|
|
|
// the CKZG library since we can make it portable here.
|
|
|
|
|
buildTags := []string{"urfave_cli_no_docs", "ckzg"} |
|
|
|
|
|
|
|
|
|
// Disable CLI markdown doc generation in release builds.
|
|
|
|
|
buildTags := []string{"urfave_cli_no_docs"} |
|
|
|
|
|
|
|
|
|
// Enable linking the CKZG library since we can make it work with additional flags.
|
|
|
|
|
if env.UbuntuVersion != "trusty" { |
|
|
|
|
buildTags = append(buildTags, "ckzg") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Configure the build.
|
|
|
|
|
env := build.Env() |
|
|
|
|
gobuild := tc.Go("build", buildFlags(env, *staticlink, buildTags)...) |
|
|
|
|
|
|
|
|
|
// arm64 CI builders are memory-constrained and can't handle concurrent builds,
|
|
|
|
@ -298,10 +303,14 @@ func doTest(cmdline []string) { |
|
|
|
|
csdb := build.MustLoadChecksums("build/checksums.txt") |
|
|
|
|
tc.Root = build.DownloadGo(csdb, dlgoVersion) |
|
|
|
|
} |
|
|
|
|
gotest := tc.Go("test", "-tags=ckzg") |
|
|
|
|
gotest := tc.Go("test") |
|
|
|
|
|
|
|
|
|
// CI needs a bit more time for the statetests (default 10m).
|
|
|
|
|
gotest.Args = append(gotest.Args, "-timeout=20m") |
|
|
|
|
|
|
|
|
|
// Enable CKZG backend in CI.
|
|
|
|
|
gotest.Args = append(gotest.Args, "-tags=ckzg") |
|
|
|
|
|
|
|
|
|
// Test a single package at a time. CI builders are slow
|
|
|
|
|
// and some tests run into timeouts under load.
|
|
|
|
|
gotest.Args = append(gotest.Args, "-p", "1") |
|
|
|
|