Skip to content

Commit e191030

Browse files
Copilotjwinarske
andcommitted
Fix Flutter Linux build by reordering CI steps
Move flutter config --enable-linux-desktop before flutter pub get to ensure Linux desktop support is enabled when dependencies are installed. Also add flutter precache --linux to download required Linux artifacts before building. This fixes the CMake error about missing generated_plugins.cmake file by ensuring the Flutter build system properly generates all ephemeral files for Linux desktop. Co-authored-by: jwinarske <[email protected]>
1 parent 046d276 commit e191030

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,14 @@ jobs:
6666
sudo apt-get update
6767
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev
6868
69+
- name: Enable Linux desktop
70+
run: flutter config --enable-linux-desktop
71+
6972
- name: Install dependencies
7073
run: flutter pub get
7174

72-
- name: Enable Linux desktop
73-
run: flutter config --enable-linux-desktop
75+
- name: Precache Linux artifacts
76+
run: flutter precache --linux
7477

7578
- name: Build Linux release
7679
run: flutter build linux --release

0 commit comments

Comments
 (0)