Skip to content

Commit 9dd3f6b

Browse files
authored
Update build-flutter.yml
Signed-off-by: DonnieBLT <[email protected]>
1 parent 3477e34 commit 9dd3f6b

File tree

1 file changed

+53
-5
lines changed

1 file changed

+53
-5
lines changed

.github/workflows/build-flutter.yml

Lines changed: 53 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build and Test Flutter App
22
on: [push, pull_request]
33

44
jobs:
5-
test:
5+
build-macos:
66
runs-on: macos-latest
77

88
steps:
@@ -18,10 +18,58 @@ jobs:
1818
- run: flutter pub get
1919
- run: flutter analyze
2020
- run: flutter test
21-
- run: flutter build apk
21+
- run: flutter build ios --no-codesign
2222

23-
# Upload APK as a build artifact
23+
# Upload iOS build as a build artifact
2424
- uses: actions/upload-artifact@v2
2525
with:
26-
name: app-release-apk
27-
path: build/app/outputs/flutter-apk/app-release.apk
26+
name: app-release-ios
27+
path: build/ios/iphoneos/Runner.app
28+
29+
build-linux:
30+
runs-on: ubuntu-latest
31+
32+
steps:
33+
- uses: actions/checkout@v3
34+
- uses: actions/setup-java@v2
35+
with:
36+
distribution: 'zulu'
37+
java-version: '17'
38+
- uses: subosito/flutter-action@v2
39+
with:
40+
channel: 'stable'
41+
architecture: x64
42+
- run: flutter pub get
43+
- run: flutter analyze
44+
- run: flutter test
45+
- run: flutter build linux
46+
47+
# Upload Linux build as a build artifact
48+
- uses: actions/upload-artifact@v2
49+
with:
50+
name: app-release-linux
51+
path: build/linux/x64/release/bundle
52+
53+
build-windows:
54+
runs-on: windows-latest
55+
56+
steps:
57+
- uses: actions/checkout@v3
58+
- uses: actions/setup-java@v2
59+
with:
60+
distribution: 'zulu'
61+
java-version: '17'
62+
- uses: subosito/flutter-action@v2
63+
with:
64+
channel: 'stable'
65+
architecture: x64
66+
- run: flutter pub get
67+
- run: flutter analyze
68+
- run: flutter test
69+
- run: flutter build windows
70+
71+
# Upload Windows build as a build artifact
72+
- uses: actions/upload-artifact@v2
73+
with:
74+
name: app-release-windows
75+
path: build/windows/runner/Release

0 commit comments

Comments
 (0)