Update build-apple.yml

This commit is contained in:
Kyle Hekkers
2025-10-29 06:43:56 +00:00
committed by GitHub
parent 17af3347d1
commit 3820e784ee

View File

@@ -1,10 +1,18 @@
name: Build Apple
on:
workflow_call:
inputs:
ref:
required: true
type: string
workflow_dispatch:
inputs:
ref:
description: "Branch, tag, or commit to build"
required: true
default: main
jobs:
build_ios:
name: iOS
@@ -13,7 +21,7 @@ jobs:
- name: Checkout application
uses: actions/checkout@v5
with:
ref: ${{ inputs.ref }}
ref: ${{ inputs.ref || github.event.inputs.ref || 'main' }}
# This seems to be related to https://github.com/actions/runner-images/issues/12758
# Select appropriate Xcode version from
@@ -43,14 +51,11 @@ jobs:
- name: Checkout application
uses: actions/checkout@v5
with:
ref: ${{ inputs.ref }}
ref: ${{ inputs.ref || github.event.inputs.ref || 'main' }}
- name: Common flutter setup
uses: ./.github/actions/flutter-common
# This seems to be related to https://github.com/actions/runner-images/issues/12758
# Select appropriate Xcode version from
# https://github.com/actions/runner-images/blob/main/images/macos/macos-15-arm64-Readme.md#xcode
- name: Xcode setup
run: |
sudo xcode-select --switch /Applications/Xcode_16.4.app
@@ -73,7 +78,7 @@ jobs:
- name: Checkout application
uses: actions/checkout@v5
with:
ref: ${{ inputs.ref }}
ref: ${{ inputs.ref || github.event.inputs.ref || 'main' }}
- name: Common flutter setup
uses: ./.github/actions/flutter-common
@@ -87,4 +92,4 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: builds-macos
path: build/macos/Build/Products/Release/wger.app.zip
path: build/macos/Build/Products/Release/wger.app.zip