mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
88 lines
2.3 KiB
YAML
88 lines
2.3 KiB
YAML
name: Build Apple
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
ref:
|
|
required: true
|
|
type: string
|
|
jobs:
|
|
build_ios:
|
|
name: iOS
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Checkout application
|
|
uses: actions/checkout@v6
|
|
with:
|
|
ref: ${{ inputs.ref }}
|
|
|
|
- name: Xcode setup
|
|
uses: maxim-lobanov/setup-xcode@v1
|
|
with:
|
|
xcode-version: latest-stable
|
|
|
|
- name: Common flutter setup
|
|
uses: ./.github/actions/flutter-common
|
|
|
|
- name: Build .app
|
|
run: |
|
|
flutter build ios --release --no-codesign
|
|
cd build/ios/iphoneos
|
|
zip -r Runner.app.zip Runner.app
|
|
|
|
- uses: actions/upload-artifact@v6
|
|
with:
|
|
name: builds-ios
|
|
path: build/ios/iphoneos/Runner.app.zip
|
|
|
|
build_ipa:
|
|
name: IPA
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Checkout application
|
|
uses: actions/checkout@v6
|
|
with:
|
|
ref: ${{ inputs.ref }}
|
|
|
|
- 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
|
|
|
|
- name: Build .xcarchive
|
|
run: |
|
|
flutter build ipa --release --no-codesign
|
|
cd build/ios/archive
|
|
zip -r Runner.xcarchive.zip Runner.xcarchive
|
|
|
|
- uses: actions/upload-artifact@v6
|
|
with:
|
|
name: builds-ipa
|
|
path: build/ios/archive/Runner.xcarchive.zip
|
|
|
|
build_macos:
|
|
name: macOS
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Checkout application
|
|
uses: actions/checkout@v6
|
|
with:
|
|
ref: ${{ inputs.ref }}
|
|
|
|
- name: Common flutter setup
|
|
uses: ./.github/actions/flutter-common
|
|
|
|
- name: Build .app
|
|
run: |
|
|
flutter build macos --release
|
|
cd build/macos/Build/Products/Release
|
|
zip -r wger.app.zip wger.app
|
|
|
|
- uses: actions/upload-artifact@v6
|
|
with:
|
|
name: builds-macos
|
|
path: build/macos/Build/Products/Release/wger.app.zip |