File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -263,12 +263,33 @@ jobs:
263263 steps :
264264 - uses : actions/checkout@v2
265265
266- - name : Setup Flutter
266+ # Use official action for amd64
267+ - name : Setup Flutter (amd64)
268+ if : matrix.arch == 'amd64'
267269 uses : subosito/flutter-action@v2
268270 with :
269271 channel : stable
270272 flutter-version : ' 3.24.3'
271273
274+ # Manual install for arm64 (action currently fails to resolve version on ubuntu-24.04-arm)
275+ - name : Setup Flutter (arm64 manual)
276+ if : matrix.arch == 'arm64'
277+ run : |
278+ set -e
279+ sudo apt-get update
280+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y git curl unzip xz-utils zip
281+ # Clone flutter stable at desired version (tag 3.24.3)
282+ git clone https://github.com/flutter/flutter.git -b stable $HOME/flutter
283+ cd $HOME/flutter
284+ # Ensure we are at or past desired version; attempt to checkout tag if exists
285+ if git rev-parse -q --verify refs/tags/3.24.3 >/dev/null; then
286+ git fetch --tags
287+ git checkout 3.24.3 || true
288+ fi
289+ echo "$HOME/flutter/bin" >> $GITHUB_PATH
290+ $HOME/flutter/bin/flutter config --no-analytics
291+ $HOME/flutter/bin/flutter doctor -v || true
292+
272293 - name : Create env.local.dart
273294 env :
274295 STRAVA_CLIENT_ID : ${{ secrets.STRAVA_CLIENT_ID }}
You can’t perform that action at this time.
0 commit comments