Skip to content
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

Simplify flutter installation in CI #518

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 1 addition & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,34 +80,8 @@ commands:
- ios
type: enum
steps:
- when:
condition:
equal:
- << parameters.precache >>
- ios
steps:
- run:
command: |
brew tap dart-lang/dart
brew install [email protected]
brew link [email protected]
name: Install Dart Mac
- unless:
condition:
equal:
- << parameters.precache >>
- ios
steps:
- run:
command: |
curl -o dart.deb https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.3/linux_packages/dart_3.5.3-1_amd64.deb
sudo dpkg -i dart.deb
name: Install Dart Linux
- run:
command: |
dart pub global activate fvm
echo 'export PATH=$HOME/.pub-cache/bin:$PATH' >> $BASH_ENV
export PATH="$PATH":"$HOME/.pub-cache/bin"
command: curl -fsSL https://fvm.app/install.sh | bash
name: Install FVM
- restore_cache:
keys:
Expand Down
31 changes: 1 addition & 30 deletions .circleci/src/commands/install_flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,9 @@ parameters:
default: none
enum: [none, android, ios]
steps:
# Recommended installation not working at the moment, see https://github.com/leoafarias/fvm/issues/796
# - run:
# name: Install FVM
# command: curl -fsSL https://fvm.app/install.sh | bash
# Therefore use workaround by installing dart first:
# Workaround start
- when:
condition:
equal: [<< parameters.precache >>, ios]
steps:
- run:
name: Install Dart Mac
command: |
brew tap dart-lang/dart
brew install [email protected]
brew link [email protected]
- unless:
condition:
equal: [<< parameters.precache >>, ios]
steps:
- run:
name: Install Dart Linux
command: |
curl -o dart.deb https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.3/linux_packages/dart_3.5.3-1_amd64.deb
sudo dpkg -i dart.deb
- run:
name: Install FVM
command: |
dart pub global activate fvm
echo 'export PATH=$HOME/.pub-cache/bin:$PATH' >> $BASH_ENV
export PATH="$PATH":"$HOME/.pub-cache/bin"
# Workaround end
command: curl -fsSL https://fvm.app/install.sh | bash
- restore_cache:
keys:
- v1-fvm-{{ arch }}-{{ checksum ".fvmrc" }}-{{ checksum "pubspec.yaml" }}-{{ checksum "pubspec.lock" }}
Expand Down