Skip to content

Commit 5e62259

Browse files
committed
github actions wasm build
1 parent c19241f commit 5e62259

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
22
push:
33
tags:
4-
- '*'
4+
- "*"
55

66
name: Release Builds
77
jobs:
@@ -48,21 +48,20 @@ jobs:
4848
- name: Set up Flutter
4949
uses: subosito/flutter-action@v2
5050
with:
51-
flutter-version: '3.22.2'
52-
channel: 'stable'
53-
51+
flutter-version: "3.24.4"
52+
channel: "stable"
5453

5554
- uses: actions/checkout@v4
5655
with:
57-
path: 'app'
56+
path: "app"
5857

5958
- name: Build web release
6059
run: |
6160
cd app
6261
flutter config --enable-web
6362
flutter pub get
64-
flutter build web -t lib/main.web.dart --release --no-tree-shake-icons
65-
63+
flutter build web -t lib/main.web.dart --release --no-tree-shake-icons --wasm
64+
6665
- name: Copy privacy policy
6766
run: |
6867
cd app
@@ -71,9 +70,9 @@ jobs:
7170
- name: Deploy to Firebase
7271
uses: w9jds/firebase-action@master
7372
with:
74-
args: deploy --only hosting
73+
args: deploy --only hosting
7574
env:
76-
PROJECT_PATH: 'app'
75+
PROJECT_PATH: "app"
7776
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
7877

7978
android:
@@ -83,17 +82,17 @@ jobs:
8382
- name: Set up Flutter
8483
uses: subosito/flutter-action@v2
8584
with:
86-
flutter-version: '3.22.2'
87-
channel: 'stable'
85+
flutter-version: "3.22.2"
86+
channel: "stable"
8887

8988
- uses: actions/setup-java@v4
9089
with:
91-
java-version: '17'
92-
distribution: 'oracle'
90+
java-version: "17"
91+
distribution: "oracle"
9392

9493
- uses: actions/checkout@v4
9594
with:
96-
path: 'app'
95+
path: "app"
9796
- run: |
9897
cd app
9998
flutter pub get
@@ -102,7 +101,7 @@ jobs:
102101
- name: Create Android Release
103102
uses: ncipollo/release-action@v1
104103
with:
105-
artifacts: 'app/build/app/outputs/apk/release/app-release.apk'
104+
artifacts: "app/build/app/outputs/apk/release/app-release.apk"
106105
token: ${{ secrets.TOKEN }}
107106
allowUpdates: true
108107

@@ -113,12 +112,12 @@ jobs:
113112
- name: Set up Flutter
114113
uses: subosito/flutter-action@v2
115114
with:
116-
flutter-version: '3.22.2'
117-
channel: 'stable'
115+
flutter-version: "3.22.2"
116+
channel: "stable"
118117

119118
- uses: actions/checkout@v4
120119
with:
121-
path: 'app'
120+
path: "app"
122121

123122
- run: |
124123
cd app
@@ -131,7 +130,7 @@ jobs:
131130
132131
- uses: ncipollo/release-action@v1
133132
with:
134-
artifacts: 'app/build/macOS/Build/Products/Release/macos-release.zip'
133+
artifacts: "app/build/macOS/Build/Products/Release/macos-release.zip"
135134
token: ${{ secrets.TOKEN }}
136135
allowUpdates: true
137136

0 commit comments

Comments
 (0)