From 000c9c326f3302c9b4dae0bc9b35253b44ea2bc9 Mon Sep 17 00:00:00 2001 From: David Son Date: Thu, 14 Sep 2023 17:40:24 +0000 Subject: [PATCH] Add ARM testing to workflow Signed-off-by: David Son --- .github/workflows/build-arm64.yml | 50 +++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/build-arm64.yml diff --git a/.github/workflows/build-arm64.yml b/.github/workflows/build-arm64.yml new file mode 100644 index 000000000..18fd7d98c --- /dev/null +++ b/.github/workflows/build-arm64.yml @@ -0,0 +1,50 @@ +name: Build + +on: + push: + branches: [ main ] + paths: + - '**' + - '!docs/**' # ignore docs changes + - '!**.md' # ignore markdown changes + pull_request: + branches: [ main ] + paths: + - '**.go' + - 'go.*' + - 'cmd/go.*' + - 'Makefile' + - 'Dockerfile' + - 'integration/**' + - 'scripts/**' + +jobs: + test: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + - uses: uraimo/run-on-arch-action@v2.5.1 + with: + go-version: '1.20.6' + arch: armv7 + distro: ubuntu20.04 + - run: make + - run: make test + integration: + runs-on: ubuntu-20.04 + strategy: + fail-fast: false + matrix: + containerd: ["1.6.19", "1.7.0"] + env: + DOCKER_BUILD_ARGS: "CONTAINERD_VERSION=${{ matrix.containerd }}" + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + - uses: uraimo/run-on-arch-action@v2.5.1 + with: + go-version: '1.20.6' + arch: armv7 + distro: ubuntu20.04 + - run: make integration