Skip to content

Commit 4529998

Browse files
committed
fix(ci): fix caching keys
1 parent d5c11f5 commit 4529998

3 files changed

Lines changed: 14 additions & 8 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ runs:
1111
cache: 'yarn'
1212

1313
- name: Cache turbo
14-
uses: actions/cache@v4
14+
uses: actions/cache@v5
1515
with:
1616
path: |
1717
.turbo
1818
apps/*/.turbo
1919
packages/*/.turbo
20-
key: ${{ runner.os }}-turbo-${{ github.sha }}
20+
key: ${{ runner.os }}-turbo-${{ hashFiles('.turbo', '**/.turbo') }}
2121
restore-keys: |
2222
${{ runner.os }}-turbo-
2323

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [main]
88

9+
env:
10+
USE_CCACHE: 1
11+
912
jobs:
1013
build-lint:
1114
name: Build & static code analysis
@@ -54,7 +57,7 @@ jobs:
5457
run: yarn build
5558

5659
- name: Cache build directory
57-
uses: actions/cache@v4
60+
uses: actions/cache@v5
5861
with:
5962
path: |
6063
apps/TesterIntegrated/kotlin/build
@@ -87,6 +90,9 @@ jobs:
8790
node-version: 'lts/*'
8891
cache: 'yarn'
8992

93+
- name: Restore ccache
94+
uses: hendrikmuhs/ccache-action@v1.2
95+
9096
- name: Setup Ruby
9197
uses: ruby/setup-ruby@v1
9298
with:
@@ -100,11 +106,11 @@ jobs:
100106
run: yarn build
101107

102108
- name: Cache Pods
103-
uses: actions/cache@v4
109+
uses: actions/cache@v5
104110
with:
105111
path: |
106112
apps/TesterIntegrated/swift/Pods
107-
key: ${{ runner.os }}-tester-ios-pods-${{ github.sha }}
113+
key: ${{ runner.os }}-tester-ios-pods-${{ hashFiles('apps/TesterIntegrated/swift/Podfile.lock') }}
108114
restore-keys: |
109115
${{ runner.os }}-tester-ios-pods-
110116
@@ -114,7 +120,7 @@ jobs:
114120
pod install
115121
116122
- name: Cache build directory
117-
uses: actions/cache@v4
123+
uses: actions/cache@v5
118124
with:
119125
path: |
120126
apps/TesterIntegrated/swift/build

.github/workflows/gradle-plugin-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: ktlint and detekt
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ['main']
66
pull_request:
77
branches: [main]
88

@@ -25,7 +25,7 @@ jobs:
2525
java-version: 17
2626

2727
- name: Cache Gradle
28-
uses: actions/cache@v4
28+
uses: actions/cache@v5
2929
with:
3030
path: |
3131
~/.gradle/caches

0 commit comments

Comments
 (0)