I am using GitHub actions to build my Flutter app and I use subosito/flutter-action@v2 to pull down Flutter. I am not able to pull the Flutter version 3.10.7 because it is not setup in a channel. I've tried using the channels 'stable' and 'any' and it still does not work. Is there a way to pull version 3.10.7?
Run subosito/flutter-action@v2
Run $GITHUB_ACTION_PATH/setup.sh -p -c '/Users/runner/hostedtoolcache/flutter/:channel:-:version:-:arch:' -k 'flutter-:os:-:channel:-:version:-:arch:-:hash:' -n '3.10.7' -a 'X64' any
Unable to determine Flutter version for channel: any version: 3.10.7 architecture: x64
Error: Process completed with exit code 1.
Quoting the original answer from GitHub: https://github.com/subosito/flutter-action/issues/242#issuecomment-1699782139
To solve this we are using this action to set the flutter version to 3.10.6, and then manually changing to the flutter directory and checking out 3.10.7 from there.
- name: 'Set Flutter 3.10.6'
uses: subosito/flutter-action@v2
with:
flutter-version: 3.10.6
- name: 'Checkout Flutter 3.10.7'
shell: bash
run: |
cd $FLUTTER_ROOT;
git fetch --tags;
git checkout 3.10.7;
flutter --version;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With