Skip to content

Commit 84c7bb5

Browse files
committed
Add cache for gems and tuist in workflow
1 parent 35f7bc1 commit 84c7bb5

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/main.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,16 @@ jobs:
1414

1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v5.0.0
17+
uses: actions/checkout@v5
1818

1919
- name: Mise (Ruby + Tuist + SwiftLint)
20-
20+
uses: jdx/mise-action@v3
21+
22+
- name: Cache gems
23+
uses: actions/cache@v3
24+
with:
25+
path: ~/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0
26+
key: ${{ runner.os }}-mise-gems-${{ hashFiles('Gemfile.lock') }}
2127

2228
- name: Install Fastlane
2329
run: |
@@ -26,6 +32,14 @@ jobs:
2632
- name: Set Xcode 26.0.1
2733
run: |
2834
sudo xcode-select -s /Applications/Xcode_26.0.1.app
35+
36+
- name: Cache Tuist .build
37+
uses: actions/cache@v4
38+
with:
39+
path: Tuist/.build
40+
key: tuist-cache-${{ hashFiles('Tuist/Package.resolved') }}
41+
restore-keys: |
42+
tuist-cache-
2943
3044
- name: Run Fastlane Upload
3145
run: |

0 commit comments

Comments
 (0)