Skip to content

Commit 3663aa8

Browse files
none: trying to install correct ruby version
1 parent 998a8fa commit 3663aa8

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

.circleci/config.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
version: 2.1
22

3+
setup_ruby: &setup_ruby
4+
run:
5+
name: Setup Ruby
6+
command: |
7+
echo "ruby-3.3.4" > ~/.ruby-version
8+
source /opt/circleci/.circleci_bash_profile
9+
ruby --version
10+
gem install bundler
11+
gem install cocoapods
12+
313
# Default VM config to be used for macOS builds
414
macos_config: &macos_config
515
macos:
@@ -20,7 +30,7 @@ executors:
2030
working_directory: ~/project
2131

2232
orbs:
23-
android: circleci/android@2.5.0
33+
android: circleci/android@1.0
2434

2535
# Always run job
2636
run_always: &run_always
@@ -47,6 +57,7 @@ jobs:
4757
install-dependencies:
4858
<<: *macos_config
4959
steps:
60+
- <<: *setup_ruby
5061
- checkout
5162
- attach_project
5263

@@ -115,9 +126,9 @@ jobs:
115126
JAVA_OPTS: '-Xms512m -Xmx1024m'
116127
executor:
117128
name: android/android-machine
118-
tag: 2023.07.1
119129
working_directory: ~/project
120130
steps:
131+
- <<: *setup_ruby
121132
- checkout:
122133
path: ~/project
123134

@@ -162,20 +173,6 @@ jobs:
162173
- checkout
163174
- attach_workspace:
164175
at: ~/project
165-
- run:
166-
name: Install Ruby
167-
command: |
168-
brew install rbenv ruby-build
169-
echo 'eval "$(rbenv init -)"' >> $BASH_ENV
170-
source $BASH_ENV
171-
172-
RUBY_VERSION=$(cat .ruby-version)
173-
rbenv install -s $RUBY_VERSION
174-
rbenv global $RUBY_VERSION
175-
rbenv rehash
176-
177-
gem install bundler
178-
gem install cocoapods
179176

180177
- <<: *setup_env_file
181178

0 commit comments

Comments
 (0)