Skip to content

Commit 3f8a952

Browse files
author
Jonas Heinle
committed
fix
1 parent 0866a51 commit 3f8a952

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/dart_on_windows.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,24 @@ jobs:
4848
run: |
4949
flutter config --enable-windows-desktop
5050
51+
# this is a bit hacky; creates ephemeral project but we remove build artifacts
52+
# for we build it our own in next step
53+
- name: "Create ephemeral project"
54+
continue-on-error: true
55+
run: |
56+
flutter build windows
57+
Remove-Item -Recurse -Force .\build
5158
52-
# Build Windows Desktop App for Production (Main Branch)
53-
#flutter build windows --release
5459
- name: "Configure Windows Desktop App"
5560
run: |
61+
5662
cmake `
5763
"${{ github.workspace }}/windows" `
5864
-B "${{ github.workspace }}/build/windows/x64" `
5965
-G "Ninja" `
6066
-DFLUTTER_TARGET_PLATFORM=windows-x64 `
6167
-DCMAKE_CXX_COMPILER='clang-cl' `
6268
-DCMAKE_CXX_COMPILER_TARGET=x86_64-pc-windows-msvc
63-
cmake --build "${{ github.workspace }}/build/windows/x64" --config Release --target install --verbose
6469
shell: pwsh
6570

6671
# Build Windows Desktop App for Production (Main Branch)

0 commit comments

Comments
 (0)