Skip to content

Commit

Permalink
workflows: macos: Use matrix for Apple Silicon artefacts
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Apr 26, 2024
1 parent e47718a commit 7853fc7
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/call-build-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,21 @@ jobs:

call-build-macos-package:
if: needs.call-build-macos-legacy-check.outputs.build-type == 'modern'
runs-on: macos-latest
runs-on: ${{ matrix.config.runner }}
environment: ${{ inputs.environment }}
needs:
- call-build-macos-legacy-check
permissions:
contents: read
strategy:
fail-fast: false
matrix:
config:
- name: "Normal macOS-latest runner (Intel)"
runner: macos-12
- name: "Apple Silicon macOS runner"
runner: macos-14

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -92,7 +101,7 @@ jobs:
- name: Upload build packages
uses: actions/upload-artifact@v4
with:
name: macos-packages
name: macos-packages on ${{ matrix.config.runner }}
path: |
build/fluent-bit-*-apple*
build/fluent-bit-*-intel*
Expand All @@ -118,7 +127,7 @@ jobs:
continue-on-error: true
uses: actions/download-artifact@v4
with:
name: macos-packages
name: macos-packages on ${{ matrix.config.runner }}

Check failure on line 130 in .github/workflows/call-build-macos.yaml

View workflow job for this annotation

GitHub Actions / PR - Actionlint

property "config" is not defined in object type {}
path: artifacts/

- name: Push MacOS packages to S3
Expand Down

0 comments on commit 7853fc7

Please sign in to comment.