Skip to content

Commit 58efca1

Browse files
committed
update
1 parent f4b0820 commit 58efca1

File tree

7 files changed

+27
-16
lines changed

7 files changed

+27
-16
lines changed

.github/workflows/build-artifact.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ jobs:
4646
npm install --global create-dmg
4747
npm install --global @bugsnag/cli
4848
brew install graphicsmagick imagemagick sentry-cli
49-
cd app/fastlane && gem install bundler && bundle install
49+
- uses: ruby/setup-ruby@v1
50+
with:
51+
ruby-version: ".ruby-version"
52+
bundler-cache: true
53+
working-directory: app/fastlane
5054
- name: Load derived data cache
5155
uses: actions/cache/restore@v4
5256
with:

.github/workflows/pr.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,10 @@ jobs:
232232
- name: MacOS version
233233
run: sw_vers
234234
- uses: actions/checkout@v4
235-
- name: Install rubocop
236-
run: gem install bundler && bundle install
235+
- uses: ruby/setup-ruby@v1
236+
with:
237+
ruby-version: ".ruby-version"
238+
bundler-cache: true
237239
- name: Run linter
238240
run: ./cmd.sh lint:rb
239241
- name: Verify that `cmd lint:rb` did not change outputs (if it did, please re-run it and re-commit!)

.github/workflows/release-next.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ jobs:
4141
npm install --global create-dmg
4242
npm install --global @bugsnag/cli
4343
brew install graphicsmagick imagemagick sentry-cli
44-
cd app/fastlane && gem install bundler && bundle install
44+
- uses: ruby/setup-ruby@v1
45+
with:
46+
ruby-version: ".ruby-version"
47+
bundler-cache: true
48+
working-directory: app/fastlane
4549
- name: Load derived data cache
4650
uses: actions/cache/restore@v4
4751
with:

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ jobs:
4747
npm install --global create-dmg
4848
npm install --global @bugsnag/cli
4949
brew install graphicsmagick imagemagick sentry-cli
50-
cd app/fastlane && gem install bundler && bundle install
50+
- uses: ruby/setup-ruby@v1
51+
with:
52+
ruby-version: ".ruby-version"
53+
bundler-cache: true
54+
working-directory: app/fastlane
5155
- name: Load SPM packages cache
5256
if: ${{ github.run_attempt == 1 }}
5357
uses: actions/cache@v4

.github/workflows/reusable-build-release-app.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ jobs:
6565
# If more Xcode specific issues arise with caching, consider the less used 3rd party https://github.com/irgaly/xcode-cache
6666
- name: Clean module cache to prevent timestamp mismatches
6767
run: rm -rf app/build/derived_data/ModuleCache.noindex
68-
- name: Install fastlane dependencies
69-
run: |
70-
cd app/fastlane && gem install bundler && bundle install
68+
- uses: ruby/setup-ruby@v1
69+
with:
70+
ruby-version: ".ruby-version"
71+
bundler-cache: true
72+
working-directory: app/fastlane
7173
- name: Build app in Release mode
7274
run: cd app/fastlane && bundle exec fastlane mac build_release
7375
env:

app/fastlane/Gemfile.lock

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ GEM
4545
babosa (1.0.4)
4646
base64 (0.3.0)
4747
benchmark (0.4.1)
48-
bigdecimal (3.3.1)
48+
bigdecimal (3.2.3)
4949
claide (1.1.0)
5050
colored (1.2)
5151
colored2 (3.1.2)
@@ -262,7 +262,6 @@ GEM
262262

263263
PLATFORMS
264264
arm64-darwin-24
265-
arm64-darwin-25
266265
ruby
267266

268267
DEPENDENCIES

cmd.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,8 @@ lint_shell_command() {
5656
}
5757

5858
lint_ruby_command() {
59-
SHELL_BIN="${SHELL:-/bin/zsh}"
60-
61-
"$SHELL_BIN" -lc '
62-
cd "$(git rev-parse --show-toplevel)" &&
63-
git ls-files -z -- "*.rb" "*.rake" "**/Gemfile" "**/Rakefile" "**/Fastfile" | xargs -0 rubocop --autocorrect
64-
'
59+
cd "$(git rev-parse --show-toplevel)" &&
60+
git ls-files -z -- "*.rb" "*.rake" "**/Gemfile" "**/Rakefile" "**/Fastfile" | xargs -0 bundle exec rubocop --autocorrect
6561
}
6662

6763
lint_yaml_command() {

0 commit comments

Comments
 (0)