Skip to content

Attempt to fix iOS Builds #10

Attempt to fix iOS Builds

Attempt to fix iOS Builds #10

Workflow file for this run

name: flutter-build
on:
push:
branches:
- main
jobs:
build-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
distribution: 'adopt'
java-version: '11'
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: '3.22.3'
- name: Install dependencies
run: flutter pub get
- name: Build APK
run: flutter build apk --release
- name: Rename APK
run: mv build/app/outputs/flutter-apk/app-release.apk build/app/outputs/flutter-apk/squarecloud.apk
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: squarecloud.apk
path: build/app/outputs/flutter-apk/squarecloud.apk
build-ios:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.22.3'
- name: Install dependencies
run: flutter pub get
- name: Build iOS
run: flutter build ios --release --no-codesign
- name: Make Result Folders
run: mkdir build/ios/iphoneos/Result
run: mkdir build/ios/iphoneos/Result/Payload

Check failure on line 46 in .github/workflows/flutter-build.yml

View workflow run for this annotation

GitHub Actions / flutter-build

Invalid workflow file

The workflow is not valid. .github/workflows/flutter-build.yml (Line: 46, Col: 15): 'run' is already defined

Check failure on line 46 in .github/workflows/flutter-build.yml

View workflow run for this annotation

GitHub Actions / flutter-build

Invalid workflow file

The workflow is not valid. .github/workflows/flutter-build.yml (Line: 46, Col: 15): 'run' is already defined

Check failure on line 46 in .github/workflows/flutter-build.yml

View workflow run for this annotation

GitHub Actions / flutter-build

Invalid workflow file

The workflow is not valid. .github/workflows/flutter-build.yml (Line: 46, Col: 15): 'run' is already defined
- name: Copy .app to Payload folder
run: mv build/ios/iphoneos/Runner.app build/ios/iphoneos/Result/Payload/Runner.app
- name: Zip to .ipa
uses: vimtor/[email protected]
with:
files: build/ios/iphoneos/Result/
dest: build/ios/iphoneos/squarecloud.ipa
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: squarecloud.ipa
path: build/ios/iphoneos/squarecloud.ipa