Skip to content

Commit 51f689e

Browse files
committed
Simplify ruby setup per latest CircleCI docs at https://circleci.com/docs/testing-ios/.
1 parent d0a7abc commit 51f689e

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

.circleci/config.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
version: 2.1
22

3+
orbs:
4+
macos: circleci/macos@2
5+
36
jobs:
47
swift-package:
58
executor: xcode-14
@@ -57,28 +60,20 @@ commands:
5760
description: "Shared setup"
5861
steps:
5962
- checkout
60-
- restore-gems
63+
- switch-ruby
6164

62-
restore-gems:
63-
description: "Restore Ruby Gems"
65+
switch-ruby:
66+
description: "Switch Ruby"
6467
steps:
65-
- run:
66-
name: Set Ruby Version
67-
command: echo "ruby-3.0.6" > ~/.ruby-version
68-
- restore_cache:
69-
key: 1-gems-{{ checksum "Gemfile.lock" }}
70-
- run: bundle check || bundle config set --local path 'vendor/bundle' && bundle install
71-
- save_cache:
72-
key: 1-gems-{{ checksum "Gemfile.lock" }}
73-
paths:
74-
- vendor/bundle
68+
- macos/switch-ruby:
69+
version: "3.0.6"
7570

7671
lint-pod:
7772
description: "Lints podspec with specified Swift version"
7873
parameters:
7974
swift-version:
8075
type: string
81-
default: "5.0"
76+
default: "5.8"
8277
steps:
8378
- run: bundle exec pod lib lint --swift-version=<< parameters.swift-version >>
8479

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0.6

0 commit comments

Comments
 (0)