forked from Nexus/nexus
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
name: "Build iOS App"
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
tags: ["*"]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-app:
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Set up Flutter
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
flutter-version: 3.44.4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: gomuks/go.mod
|
|
|
|
- name: Build app
|
|
run: |
|
|
flutter pub get
|
|
dart scripts/generate.dart
|
|
flutter pub run build_runner build
|
|
flutter build ios --release --no-codesign
|
|
|
|
# Unsigned IPA: SideStore/AltStore re-sign this on-device with the
|
|
# user's own Apple ID at install time, so no certificate is needed here.
|
|
- name: Package unsigned IPA
|
|
run: |
|
|
mkdir Payload
|
|
cp -r build/ios/iphoneos/Runner.app Payload/
|
|
zip -r Nexus.ipa Payload
|
|
|
|
- name: Upload IPA artifact
|
|
uses: actions/upload-artifact@v6
|
|
with:
|
|
name: Nexus.ipa
|
|
path: Nexus.ipa
|