From 2c344a35e247f0035d58d62dc4b83a793a784417 Mon Sep 17 00:00:00 2001 From: Nils Hanke Date: Wed, 14 Sep 2022 15:23:10 +0200 Subject: [PATCH] CI: Test multi-arch CLI builds on push --- .github/workflows/build-binaries.yml | 56 +++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.yml index fe5e0a6ff..fbc93b346 100644 --- a/.github/workflows/build-binaries.yml +++ b/.github/workflows/build-binaries.yml @@ -60,7 +60,7 @@ jobs: - name: Build disk-mapper uses: ./.github/actions/build_disk_mapper - build-cli: + build-cli-linux-amd64: runs-on: ubuntu-latest steps: - name: Setup Go environment @@ -73,3 +73,57 @@ jobs: - name: Build CLI uses: ./.github/actions/build_cli + with: + targetOS: linux + targetArch: amd64 + + build-cli-linux-arm64: + runs-on: ubuntu-latest + steps: + - name: Setup Go environment + uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f + with: + go-version: "1.19.1" + + - name: Check out repository + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b + + - name: Build CLI + uses: ./.github/actions/build_cli + with: + targetOS: linux + targetArch: arm64 + + build-cli-darwin-amd64: + runs-on: ubuntu-latest + steps: + - name: Setup Go environment + uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f + with: + go-version: "1.19.1" + + - name: Check out repository + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b + + - name: Build CLI + uses: ./.github/actions/build_cli + with: + targetOS: darwin + targetArch: amd64 + + build-cli-darwin-arm64: + runs-on: ubuntu-latest + steps: + - name: Setup Go environment + uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f + with: + go-version: "1.19.1" + + - name: Check out repository + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b + + - name: Build CLI + uses: ./.github/actions/build_cli + with: + targetOS: darwin + targetArch: arm64