Skip to content

Commit abfea72

Browse files
Fix Flutter setup for Linux arm64 in CI
subosito/flutter-action can't resolve a Flutter SDK for Linux arm64 since Flutter doesn't publish pre-built archives for that platform. Clone from git instead and run precache manually. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 086f229 commit abfea72

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/build-linux.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,15 @@ jobs:
132132
libgtk-3-dev liblzma-dev libstdc++-12-dev
133133
134134
- name: Setup Flutter
135-
uses: subosito/flutter-action@v2
136-
with:
137-
channel: 'stable'
138-
cache: true
135+
run: |
136+
git clone https://github.com/flutter/flutter.git -b stable --depth 1 "$HOME/flutter"
137+
echo "$HOME/flutter/bin" >> "$GITHUB_PATH"
138+
139+
- name: Flutter precache
140+
run: |
141+
export PATH="$HOME/flutter/bin:$PATH"
142+
flutter precache --linux
143+
flutter --version
139144
140145
- name: Setup Rust
141146
uses: dtolnay/rust-toolchain@stable

0 commit comments

Comments
 (0)