Skip to content

Commit c9d7a3c

Browse files
committed
windows workflow check with fastforge
1 parent 6cb60dd commit c9d7a3c

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

.github/workflows/build_linux.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build Linux
2+
3+
on: [push, workflow_dispatch]
4+
5+
jobs:
6+
build-linux:
7+
runs-on: linux
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v4
11+
12+
- name: Create .env file
13+
run: |
14+
echo "SUPABASE_URL=${{ secrets.SUPABASE_URL }}" > .env
15+
echo "SUPABASE_KEY=${{ secrets.SUPABASE_KEY }}" >> .env
16+
type .env # For debugging (optional)
17+
18+
- name: Setup Flutter
19+
uses: subosito/flutter-action@v2
20+
with:
21+
channel: stable
22+
cache: true
23+
24+
- name: Install dependencies
25+
run: flutter pub get
26+
27+
- name: Build Windows EXE
28+
run: flutter build windows --release
29+
30+
- name: Package using Fastforge
31+
run: fastforge package --platform windows --targets exe
32+
33+
- name: Upload Artifact
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: WindowsExecutable
37+
path: dist\0.1.0\cookethflow-0.1.0-windows-setup.exe
38+
retention-days: 7 # Optional: Set artifact retention period

.github/workflows/build_windows.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ jobs:
2626

2727
- name: Build Windows EXE
2828
run: flutter build windows --release
29+
30+
- name: Package using Fastforge
31+
run: fastforge package --platform windows --targets exe
2932

3033
- name: Upload Artifact
3134
uses: actions/upload-artifact@v4
3235
with:
3336
name: WindowsExecutable
34-
path: build\windows\x64\runner\Release\
37+
path: dist\0.1.0\cookethflow-0.1.0-windows-setup.exe
3538
retention-days: 7 # Optional: Set artifact retention period

0 commit comments

Comments
 (0)