mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-28 17:08:29 +01:00
104 lines
2.4 KiB
YAML
104 lines
2.4 KiB
YAML
name: Build Apple
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
ref:
|
|
description: 'Branch/Tag to build'
|
|
required: true
|
|
default: 'master'
|
|
workflow_call:
|
|
inputs:
|
|
ref:
|
|
required: true
|
|
type: string
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build_ios:
|
|
name: iOS
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Checkout application
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
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@v7
|
|
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@v7
|
|
with:
|
|
persist-credentials: false
|
|
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 .xcarchive
|
|
run: |
|
|
flutter build ipa --release --no-codesign
|
|
cd build/ios/archive
|
|
zip -r Runner.xcarchive.zip Runner.xcarchive
|
|
|
|
- uses: actions/upload-artifact@v7
|
|
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@v7
|
|
with:
|
|
persist-credentials: false
|
|
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 macos --release
|
|
cd build/macos/Build/Products/Release
|
|
zip -r wger.app.zip wger.app
|
|
|
|
- uses: actions/upload-artifact@v7
|
|
with:
|
|
name: builds-macos
|
|
path: build/macos/Build/Products/Release/wger.app.zip |