Skip to content

Commit

Permalink
Update build-flutter.yml
Browse files Browse the repository at this point in the history
Signed-off-by: DonnieBLT <[email protected]>
  • Loading branch information
DonnieBLT authored Aug 22, 2024
1 parent 9dd3f6b commit 62c825c
Showing 1 changed file with 5 additions and 53 deletions.
58 changes: 5 additions & 53 deletions .github/workflows/build-flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and Test Flutter App
on: [push, pull_request]

jobs:
build-macos:
test:
runs-on: macos-latest

steps:
Expand All @@ -18,58 +18,10 @@ jobs:
- run: flutter pub get
- run: flutter analyze
- run: flutter test
- run: flutter build ios --no-codesign
- run: flutter build apk

# Upload iOS build as a build artifact
# Upload APK as a build artifact
- uses: actions/upload-artifact@v2
with:
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
name: app-release-apk
path: build/app/outputs/flutter-apk/app-release.apk

0 comments on commit 62c825c

Please sign in to comment.