Skip to content

Commit 63ae721

Browse files
committed
ci(pr_build): add build ci for pr
Signed-off-by: OctagonalStar <[email protected]>
1 parent 83f7f4d commit 63ae721

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Flutter Build(PR)
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
build-windows:
9+
name: Build Windows App
10+
runs-on: windows-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Setup Flutter
15+
uses: subosito/flutter-action@v2
16+
with:
17+
channel: stable
18+
flutter-version: '3.35.5'
19+
20+
- run: flutter pub get
21+
- run: flutter build windows
22+
23+
- uses: actions/upload-artifact@v4
24+
with:
25+
name: windows-build
26+
path: build/windows/x64/runner/Release
27+
28+
build-web:
29+
name: Build Flutter Web
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: subosito/flutter-action@v2
34+
with:
35+
flutter-version: '3.35.5'
36+
- run: flutter pub get
37+
- run: flutter build web --release
38+
- uses: actions/upload-artifact@v4
39+
with:
40+
name: web-build
41+
path: build/web

0 commit comments

Comments
 (0)