From 9dd3f6b0d25eeae8f7b9b82b971d94ca449c6b57 Mon Sep 17 00:00:00 2001 From: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com> Date: Thu, 22 Aug 2024 18:55:21 -0400 Subject: [PATCH] Update build-flutter.yml Signed-off-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com> --- .github/workflows/build-flutter.yml | 58 ++++++++++++++++++++++++++--- 1 file changed, 53 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-flutter.yml b/.github/workflows/build-flutter.yml index 9da6181789..7bc070d98e 100644 --- a/.github/workflows/build-flutter.yml +++ b/.github/workflows/build-flutter.yml @@ -2,7 +2,7 @@ name: Build and Test Flutter App on: [push, pull_request] jobs: - test: + build-macos: runs-on: macos-latest steps: @@ -18,10 +18,58 @@ jobs: - run: flutter pub get - run: flutter analyze - run: flutter test - - run: flutter build apk + - run: flutter build ios --no-codesign - # Upload APK as a build artifact + # Upload iOS build as a build artifact - uses: actions/upload-artifact@v2 with: - name: app-release-apk - path: build/app/outputs/flutter-apk/app-release.apk + name: app-release-ios + path: build/ios/iphoneos/Runner.app + + build-linux: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v2 + with: + distribution: 'zulu' + java-version: '17' + - uses: subosito/flutter-action@v2 + with: + channel: 'stable' + architecture: x64 + - run: flutter pub get + - run: flutter analyze + - run: flutter test + - run: flutter build linux + + # Upload Linux build as a build artifact + - uses: actions/upload-artifact@v2 + with: + name: app-release-linux + path: build/linux/x64/release/bundle + + build-windows: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v2 + with: + distribution: 'zulu' + java-version: '17' + - uses: subosito/flutter-action@v2 + with: + channel: 'stable' + architecture: x64 + - run: flutter pub get + - run: flutter analyze + - run: flutter test + - run: flutter build windows + + # Upload Windows build as a build artifact + - uses: actions/upload-artifact@v2 + with: + name: app-release-windows + path: build/windows/runner/Release