Skip to content

Commit 36acf03

Browse files
authored
Merge pull request #307 from Scriptbash/build-workflow
Add macOS and Windows to build workflow
2 parents 9725193 + 2ebeaf2 commit 36acf03

File tree

1 file changed

+42
-2
lines changed

1 file changed

+42
-2
lines changed

.github/workflows/build.yml

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ jobs:
3535
- run: flutter build apk --debug
3636
- uses: actions/upload-artifact@v6
3737
with:
38-
name: release-apk
38+
name: android-debug-apk
3939
path: build/app/outputs/apk/debug/app-debug.apk
40+
4041
build-ios:
4142
name: Build for iOS
4243
runs-on: macos-15
@@ -50,4 +51,43 @@ jobs:
5051
channel: 'stable'
5152
architecture: x64
5253
- run: flutter pub get
53-
- run: flutter build ios --release --no-codesign
54+
- run: flutter build ios --debug --no-codesign
55+
- uses: actions/upload-artifact@v6
56+
with:
57+
name: ios-debug-app
58+
path: build/ios/iphoneos/*.app
59+
60+
build-macos:
61+
name: Build for macOS
62+
runs-on: macos-15
63+
steps:
64+
- uses: actions/checkout@v6
65+
- uses: maxim-lobanov/setup-xcode@v1
66+
with:
67+
xcode-version: latest-stable
68+
- uses: subosito/flutter-action@v2
69+
with:
70+
channel: 'stable'
71+
- run: flutter pub get
72+
- run: flutter build macos --debug
73+
- uses: actions/upload-artifact@v6
74+
with:
75+
name: macos-debug-app
76+
path: build/macos/Build/Products/Debug/*.app
77+
78+
build-windows:
79+
name: Build for Windows
80+
runs-on: windows-latest
81+
steps:
82+
- uses: actions/checkout@v6
83+
- uses: subosito/flutter-action@v2
84+
with:
85+
channel: 'stable'
86+
- run: flutter pub get
87+
- run: flutter build windows --debug
88+
- uses: actions/upload-artifact@v6
89+
with:
90+
name: windows-debug
91+
path: build/windows/x64/runner/Debug/
92+
93+

0 commit comments

Comments
 (0)