-
-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arm64 runners support #345
Comments
The official support deployment on linux-arm64 and provide dart-sdk-linux-arm64(3.24.5 SDK example). It should be possible if you don't reference release_linux.json. |
So It should be possible to include it in this action? |
Here's an alternative way to install Flutter for Linux that works on ARM. I've tested this on
jobs:
build-linux:
# If you want to run the same action on x86 and ARM, you can use a matrix strategy
strategy:
matrix:
os: [ubuntu-latest, ubuntu-24.04-arm]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install dependencies from Apt
run: |
sudo apt-get update -y && sudo apt-get upgrade -y;
# These packages are listed in the setup instructions for Linux desktop. They may not all be necessary.
# For reference: https://docs.flutter.dev/get-started/install/linux/desktop
sudo apt-get install -y curl git unzip xz-utils zip libglu1-mesa clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
- name: Clone Flutter
run: |
# Shallow-clone Flutter to reduce download size
git clone --depth 1 --branch 3.27.3 https://github.com/flutter/flutter.git $RUNNER_TEMP/flutter
# Add Flutter to PATH
echo "$RUNNER_TEMP/flutter/bin" >> $GITHUB_PATH
- name: Install Flutter
# Running "flutter doctor" will download Flutter's dependencies
run: flutter doctor
# More steps here... If you want to use the same clone strategy on Windows, the code is similar: jobs:
build-windows:
runs-on: [windows-latest]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Clone Flutter
run: |
# Shallow-clone Flutter to reduce download size
git clone --depth 1 --branch 3.27.3 https://github.com/flutter/flutter.git $env:RUNNER_TEMP\flutter
# Add Flutter to PATH
Add-Content $env:GITHUB_PATH "$env:RUNNER_TEMP\flutter\bin"
- name: Install Flutter
# Running "flutter doctor" will download Flutter's dependencies
run: flutter doctor
# More steps here... |
Can be removed when subosito/flutter-action#345 is closed Also renamed aarch64 to arm64
you don't need to manually git clone, u just
then linux arm works |
Thanks for your solution @pugaizai. It works! The issue with this action occurs when it's configured to use a flutter channel other than master. |
Drop manual clonning workaround, as flutter-action can work on arm64 as well if master channel with explicit version declartion also works [1]. [1] subosito/flutter-action#345 (comment)
Drop manual clonning workaround, as flutter-action can work on arm64 as well if master channel with explicit version declartion also works [1]. [1] subosito/flutter-action#345 (comment)
Github just released arm64 actions for linux. I tried to setup flutter with
flutter-action
onubuntu-24.04-arm
but it failed. Will you add support also for arm runners?Here is the error:
The text was updated successfully, but these errors were encountered: