Skip to content

Commit cf197ed

Browse files
committed
Added windows build in github action runner
1 parent bfb88a2 commit cf197ed

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

.github/workflows/main.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -134,31 +134,31 @@ jobs:
134134
token: ${{ secrets.TOKEN }}
135135
allowUpdates: true
136136

137-
# windows:
138-
# name: Windows
139-
# runs-on: windows-latest
140-
# steps:
141-
# - name: Set up Flutter
142-
# uses: subosito/flutter-action@v2
143-
# with:
144-
# flutter-version: '3.22.2'
145-
# channel: 'stable'
146-
147-
# - uses: actions/checkout@v4
148-
# with:
149-
# path: 'app'
150-
151-
# - run: |
152-
# cd app
153-
# flutter config --enable-windows-desktop
154-
# flutter pub get
155-
# flutter build windows --release
156-
# cd build\windows\runner
157-
# Compress-Archive -Path Release -DestinationPath windows-release.zip
158-
159-
# - name: Windows release build for github
160-
# uses: ncipollo/release-action@v1
161-
# with:
162-
# artifacts: 'app\build\windows\runner\windows-release.zip'
163-
# token: ${{ secrets.TOKEN }}
164-
# allowUpdates: true
137+
windows:
138+
name: Windows
139+
runs-on: windows-latest
140+
steps:
141+
- name: Set up Flutter
142+
uses: subosito/flutter-action@v2
143+
with:
144+
flutter-version: "3.24.4"
145+
channel: "stable"
146+
147+
- uses: actions/checkout@v4
148+
with:
149+
path: "app"
150+
151+
- run: |
152+
cd app
153+
flutter config --enable-windows-desktop
154+
flutter pub get
155+
flutter build windows --release
156+
cd build\windows\x64\runner
157+
Compress-Archive -Path Release -DestinationPath windows-release.zip
158+
159+
- name: Windows release build for github
160+
uses: ncipollo/release-action@v1
161+
with:
162+
artifacts: 'app\build\windows\runner\windows-release.zip'
163+
token: ${{ secrets.TOKEN }}
164+
allowUpdates: true

0 commit comments

Comments
 (0)