From 68fe419b2056aba84b7bb78b56785908b7e852c2 Mon Sep 17 00:00:00 2001 From: Evgeniy Zayats Date: Fri, 26 Apr 2024 19:50:14 -0400 Subject: [PATCH] .github: build s3 gw for arm64 Signed-off-by: Evgeniy Zayats --- .github/workflows/builds.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 3cadba03..c1e470f6 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -35,11 +35,14 @@ on: jobs: build_bins: name: Build binaries - runs-on: ubuntu-22.04 + runs-on: ${{ matrix.os.name }} strategy: matrix: - os: [{ name: ubuntu-22.04, bin-name: linux }] # { name: windows-2022, bin-name: windows }, { name: macos-12, bin-name: darwin } - arch: [amd64] # arm64 + os: [{ name: ubuntu-22.04, bin-name: linux }, { name: macos-12, bin-name: darwin }] # { name: windows-2022, bin-name: windows } + arch: [amd64, arm64] + exclude: + - os: { name: macos-12, bin-name: darwin } + arch: 'amd64' steps: - uses: actions/checkout@v4 @@ -122,7 +125,7 @@ jobs: context: . file: .docker/Dockerfile push: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.push_image == 'true') }} - platforms: linux/amd64 + platforms: linux/amd64,linux/arm64,darwin build-args: | REPO=github.com/${{ github.repository }} VERSION=${{ steps.setver.outputs.version }}