From a8a2c841ba1992bcfd227895e2602d7d164c12b2 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Tue, 7 Nov 2023 11:51:31 +0100 Subject: [PATCH] Add automatic build of arm64 for macOS (#66) --- .github/workflows/build-tool-packages.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-tool-packages.yml b/.github/workflows/build-tool-packages.yml index 6a0a0f9..4a15f0f 100644 --- a/.github/workflows/build-tool-packages.yml +++ b/.github/workflows/build-tool-packages.yml @@ -27,14 +27,18 @@ defaults: jobs: build: - name: Build ${{ inputs.tool-name }} ${{ inputs.tool-version }} [${{ matrix.platform }}] + name: Build ${{ inputs.tool-name }} ${{ inputs.tool-version }} [${{ matrix.platform }}] [${{ matrix.architecture }}] runs-on: ubuntu-latest env: - ARTIFACT_NAME: ${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-x64 + ARTIFACT_NAME: ${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-${{ matrix.architecture }} strategy: fail-fast: false matrix: platform: [linux, darwin, win32] + architecture: [x64] + include: + - architecture: arm64 + platform: darwin steps: - uses: actions/checkout@v3 with: @@ -43,7 +47,8 @@ jobs: - name: Build ${{ inputs.tool-name }} ${{ inputs.tool-version }} run: | ./builders/build-${{ inputs.tool-name }}.ps1 -Version ${{ inputs.tool-version }} ` - -Platform ${{ matrix.platform }} + -Platform ${{ matrix.platform }} ` + -Architecture ${{ matrix.architecture }} - name: Publish artifact uses: actions/upload-artifact@v3