mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Build everything and run unit tests on ARM in Buildkite.
PiperOrigin-RevId: 462228233
This commit is contained in:
@@ -61,11 +61,19 @@ steps:
|
||||
|
||||
# Build everything.
|
||||
- <<: *common
|
||||
label: ":world_map: Build everything"
|
||||
label: ":world_map: Build everything (AMD64)"
|
||||
command: "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//..."
|
||||
agents:
|
||||
arch: "amd64"
|
||||
|
||||
- <<: *common
|
||||
label: ":world_map: Build everything (ARM64)"
|
||||
commands:
|
||||
- "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//pkg/..."
|
||||
- "make build OPTIONS=--build_tag_filters=-nogo TARGETS=//runsc/..."
|
||||
agents:
|
||||
arch: "arm64"
|
||||
|
||||
# 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.
|
||||
@@ -151,6 +159,11 @@ steps:
|
||||
agents:
|
||||
cgroup: "v2"
|
||||
arch: "amd64"
|
||||
- <<: *common
|
||||
label: ":test_tube: Unit tests (ARM64)"
|
||||
command: make unit-tests
|
||||
agents:
|
||||
arch: "arm64"
|
||||
- <<: *common
|
||||
label: ":test_tube: Container tests (cgroupv1)"
|
||||
command: make container-tests
|
||||
|
||||
@@ -25,6 +25,8 @@ namespace testing {
|
||||
|
||||
namespace {
|
||||
|
||||
#ifdef __x86_64__
|
||||
|
||||
void FixupHandler(int sig, siginfo_t* si, void* void_ctx) {
|
||||
static unsigned int dataval = 0;
|
||||
|
||||
@@ -55,6 +57,8 @@ void BM_FaultSignalFixup(benchmark::State& state) {
|
||||
|
||||
BENCHMARK(BM_FaultSignalFixup)->UseRealTime();
|
||||
|
||||
#endif // __x86_64__
|
||||
|
||||
} // namespace
|
||||
|
||||
} // namespace testing
|
||||
|
||||
Reference in New Issue
Block a user