mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Build everything continuously.
Only build //runsc/... and //pkg/... in presubmits. Building //... takes too
much time, especially after updating to Go 1.20 in 5572ab2f7d ("Bump go
version to 1.20").
PiperOrigin-RevId: 510172859
This commit is contained in:
@@ -7,8 +7,20 @@ _templates:
|
||||
limit: 10
|
||||
- exit_status: "*"
|
||||
limit: 2
|
||||
common_60_tl: &common_60_tl
|
||||
timeout_in_minutes: 60
|
||||
retry:
|
||||
automatic:
|
||||
- exit_status: -1
|
||||
limit: 10
|
||||
- exit_status: "*"
|
||||
limit: 2
|
||||
source_test: &source_test
|
||||
if: build.env("STAGED_BINARIES") == null
|
||||
source_test_presubmit: &source_test_presubmit
|
||||
if: build.env("STAGED_BINARIES") == null && build.branch != "master"
|
||||
source_test_continuous: &source_test_continuous
|
||||
if: build.env("STAGED_BINARIES") == null && build.branch == "master"
|
||||
platform_specific_agents: &platform_specific_agents {}
|
||||
kvm_agents: &kvm_agents {kvm: "true"}
|
||||
ubuntu_agents: &ubuntu_agents {os: "ubuntu"}
|
||||
@@ -76,23 +88,32 @@ steps:
|
||||
label: ":fire: Smoke race tests"
|
||||
command: make smoke-race-tests
|
||||
|
||||
# Build everything.
|
||||
# Build runsc and pkg (presubmits only).
|
||||
- <<: *common
|
||||
<<: *source_test
|
||||
label: ":world_map: Build everything (AMD64)"
|
||||
command: "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//..."
|
||||
<<: *source_test_presubmit
|
||||
label: ":world_map: Build runsc and pkg (AMD64)"
|
||||
commands:
|
||||
- "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//pkg/..."
|
||||
- "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//runsc/..."
|
||||
agents:
|
||||
arch: "amd64"
|
||||
|
||||
- <<: *common
|
||||
<<: *source_test
|
||||
label: ":world_map: Build everything (ARM64)"
|
||||
<<: *source_test_presubmit
|
||||
label: ":world_map: Build runsc and pkg (ARM64)"
|
||||
commands:
|
||||
- "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//pkg/..."
|
||||
- "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//runsc/..."
|
||||
agents:
|
||||
arch: "arm64"
|
||||
|
||||
# Build everything (continuous only).
|
||||
- <<: *common_60_tl
|
||||
<<: *source_test_continuous
|
||||
label: ":world_map: Build everything"
|
||||
commands:
|
||||
- "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//..."
|
||||
|
||||
# Check that the Go branch builds. This is not technically required, as this build is maintained
|
||||
# as a GitHub action in order to preserve this maintaince across forks. However, providing the
|
||||
# action here may provide easier debuggability and diagnosis on failure.
|
||||
|
||||
Reference in New Issue
Block a user