@@ -27,6 +27,8 @@ concurrency:
27
27
jobs :
28
28
changes :
29
29
runs-on : macos-12
30
+ # Only when this is not a scheduled run
31
+ if : github.event_name != 'schedule'
30
32
outputs :
31
33
changed : ${{ steps.changes.outputs.changed }}
32
34
steps :
@@ -110,14 +112,11 @@ jobs:
110
112
runs-on : ${{ matrix.os }}
111
113
steps :
112
114
- uses : actions/checkout@v3
113
- - uses : mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
114
- with :
115
- cache_key : ${{ matrix.os }}
116
115
117
116
- name : Prepare ccache
118
117
uses : actions/cache@v3
119
118
with :
120
- path : ~/. ccache
119
+ path : ${{ runner.temp }}/ ccache
121
120
key : firestore-ccache-${{ runner.os }}-${{ github.sha }}
122
121
restore-keys : |
123
122
firestore-ccache-${{ runner.os }}-
@@ -133,7 +132,9 @@ jobs:
133
132
run : scripts/install_prereqs.sh Firestore ${{ runner.os }} cmake
134
133
135
134
- name : Build and test
136
- run : scripts/third_party/travis/retry.sh scripts/build.sh Firestore ${{ runner.os }} cmake
135
+ run : |
136
+ export CCACHE_DIR=${{ runner.temp }}/ccache
137
+ scripts/third_party/travis/retry.sh scripts/build.sh Firestore ${{ runner.os }} cmake
137
138
138
139
139
140
cmake-prod-db :
@@ -156,17 +157,14 @@ jobs:
156
157
runs-on : ${{ matrix.os }}
157
158
steps :
158
159
- uses : actions/checkout@v3
159
- - uses : mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
160
- with :
161
- cache_key : ${{ matrix.os }}
162
160
163
161
- name : Prepare ccache
164
162
uses : actions/cache@v3
165
163
with :
166
- path : ~/. ccache
167
- key : firestore-ccache-${{ runner.os }}-${{ github.sha }}
164
+ path : ${{ runner.temp }}/ ccache
165
+ key : firestore-ccache-${{ matrix.databaseId }}-${{ runner.os }}-${{ github.sha }}
168
166
restore-keys : |
169
- firestore-ccache-${{ runner.os }}-
167
+ firestore-ccache-${{ matrix.databaseId }}-${{ runner.os }}-
170
168
171
169
- name : Cache Mint packages
172
170
uses : actions/cache@v3
@@ -183,7 +181,9 @@ jobs:
183
181
run : scripts/install_prereqs.sh Firestore ${{ runner.os }} cmake
184
182
185
183
- name : Build and test
186
- run : scripts/third_party/travis/retry.sh scripts/build.sh Firestore ${{ runner.os }} cmake
184
+ run : |
185
+ export CCACHE_DIR=${{ runner.temp }}/ccache
186
+ scripts/third_party/travis/retry.sh scripts/build.sh Firestore ${{ runner.os }} cmake
187
187
188
188
189
189
sanitizers :
@@ -206,23 +206,22 @@ jobs:
206
206
207
207
steps :
208
208
- uses : actions/checkout@v3
209
- - uses : mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
210
- with :
211
- cache_key : ${{ matrix.os }}
212
209
213
210
- name : Prepare ccache
214
211
uses : actions/cache@v3
215
212
with :
216
- path : ~/. ccache
217
- key : firestore-ccache- ${{ runner.os }}-${{ matrix.sanitizer }}-${{ github.sha }}
213
+ path : ${{ runner.temp }}/ ccache
214
+ key : ${{ matrix.sanitizer }}-firestore-ccache- ${{ runner.os }}-${{ github.sha }}
218
215
restore-keys : |
219
- firestore-ccache- ${{ runner.os }}-${{ matrix.sanitizer }}-
216
+ ${{ matrix.sanitizer }}-firestore-ccache- ${{ runner.os }}-
220
217
221
218
- name : Setup build
222
219
run : scripts/install_prereqs.sh Firestore ${{ runner.os }} cmake
223
220
224
221
- name : Build and test
225
- run : scripts/third_party/travis/retry.sh scripts/build.sh Firestore ${{ runner.os }} cmake
222
+ run : |
223
+ export CCACHE_DIR=${{ runner.temp }}/ccache
224
+ scripts/third_party/travis/retry.sh scripts/build.sh Firestore ${{ runner.os }} cmake
226
225
227
226
228
227
xcodebuild :
@@ -241,7 +240,7 @@ jobs:
241
240
- uses : actions/checkout@v3
242
241
- uses : mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
243
242
with :
244
- cache_key : ${{ matrix.os }}
243
+ cache_key : ${{ matrix.target }}
245
244
246
245
- uses : ruby/setup-ruby@v1
247
246
0 commit comments