Skip to content

Commit

Permalink
workkflows: 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 02d5430
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/call-build-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,29 @@ 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"
runner: macos-latest
- name: "Apple Silicon macOS runner"
runner: macos-latest-xlarge

include:
- name: "Normal macOS-latest runner"
runner: macos-latest
package: intel
- name: "Apple Silicon macOS runner"
runner: macos-latest-xlarge
package: apple

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -92,7 +109,7 @@ jobs:
- name: Upload build packages
uses: actions/upload-artifact@v4
with:
name: macos-packages
name: macos-packages on ${{ matrix.config.package }}

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

View workflow job for this annotation

GitHub Actions / PR - Actionlint

property "package" is not defined in object type {name: string; runner: string}
path: |
build/fluent-bit-*-apple*
build/fluent-bit-*-intel*
Expand Down

0 comments on commit 02d5430

Please sign in to comment.