Add automatic build of arm64 for macOS (#66)

pull/69/head
Dmitry Shibanov 1 year ago committed by GitHub
parent 6fbb1f0f20
commit a8a2c841ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,14 +27,18 @@ defaults:
jobs: jobs:
build: 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 runs-on: ubuntu-latest
env: 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: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
platform: [linux, darwin, win32] platform: [linux, darwin, win32]
architecture: [x64]
include:
- architecture: arm64
platform: darwin
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
@ -43,7 +47,8 @@ jobs:
- name: Build ${{ inputs.tool-name }} ${{ inputs.tool-version }} - name: Build ${{ inputs.tool-name }} ${{ inputs.tool-version }}
run: | run: |
./builders/build-${{ inputs.tool-name }}.ps1 -Version ${{ inputs.tool-version }} ` ./builders/build-${{ inputs.tool-name }}.ps1 -Version ${{ inputs.tool-version }} `
-Platform ${{ matrix.platform }} -Platform ${{ matrix.platform }} `
-Architecture ${{ matrix.architecture }}
- name: Publish artifact - name: Publish artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3

Loading…
Cancel
Save