@@ -49,40 +49,32 @@ jobs:
49
49
runs-on : ${{ matrix.os }}
50
50
steps :
51
51
- name : Checkout current branch (full)
52
- uses : actions/checkout@v2
52
+ uses : actions/checkout@v4
53
53
with :
54
54
fetch-depth : 0
55
55
56
56
- name : Setup Java (temurin@17)
57
57
if : matrix.java == 'temurin@17'
58
- uses : actions/setup-java@v2
58
+ uses : actions/setup-java@v4
59
59
with :
60
60
distribution : temurin
61
61
java-version : 17
62
+ cache : sbt
62
63
63
- - name : Cache sbt
64
- uses : actions/cache@v2
65
- with :
66
- path : |
67
- ~/.sbt
68
- ~/.ivy2/cache
69
- ~/.coursier/cache/v1
70
- ~/.cache/coursier/v1
71
- ~/AppData/Local/Coursier/Cache/v1
72
- ~/Library/Caches/Coursier/v1
73
- key : ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
64
+ - name : Setup sbt
65
+ uses : sbt/setup-sbt@v1
74
66
75
67
- name : Check that workflows are up to date
76
- run : sbt ++ ${{ matrix.scala }} githubWorkflowCheck
68
+ run : sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
77
69
78
70
- name : Build project
79
- run : sbt ++ ${{ matrix.scala }} test
71
+ run : sbt '++ ${{ matrix.scala }}' test
80
72
81
73
- name : Compress target directories
82
74
run : tar cf targets.tar target silencer-lib/target silencer-plugin/target project/target
83
75
84
76
- name : Upload target directories
85
- uses : actions/upload-artifact@v2
77
+ uses : actions/upload-artifact@v4
86
78
with :
87
79
name : target-${{ matrix.os }}-${{ matrix.scala }}-${{ matrix.java }}
88
80
path : targets.tar
@@ -99,31 +91,23 @@ jobs:
99
91
runs-on : ${{ matrix.os }}
100
92
steps :
101
93
- name : Checkout current branch (full)
102
- uses : actions/checkout@v2
94
+ uses : actions/checkout@v4
103
95
with :
104
96
fetch-depth : 0
105
97
106
98
- name : Setup Java (temurin@17)
107
99
if : matrix.java == 'temurin@17'
108
- uses : actions/setup-java@v2
100
+ uses : actions/setup-java@v4
109
101
with :
110
102
distribution : temurin
111
103
java-version : 17
104
+ cache : sbt
112
105
113
- - name : Cache sbt
114
- uses : actions/cache@v2
115
- with :
116
- path : |
117
- ~/.sbt
118
- ~/.ivy2/cache
119
- ~/.coursier/cache/v1
120
- ~/.cache/coursier/v1
121
- ~/AppData/Local/Coursier/Cache/v1
122
- ~/Library/Caches/Coursier/v1
123
- key : ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
106
+ - name : Setup sbt
107
+ uses : sbt/setup-sbt@v1
124
108
125
109
- name : Download target directories (2.13.14)
126
- uses : actions/download-artifact@v2
110
+ uses : actions/download-artifact@v4
127
111
with :
128
112
name : target-${{ matrix.os }}-2.13.14-${{ matrix.java }}
129
113
@@ -133,7 +117,7 @@ jobs:
133
117
rm targets.tar
134
118
135
119
- name : Download target directories (2.13.13)
136
- uses : actions/download-artifact@v2
120
+ uses : actions/download-artifact@v4
137
121
with :
138
122
name : target-${{ matrix.os }}-2.13.13-${{ matrix.java }}
139
123
@@ -143,7 +127,7 @@ jobs:
143
127
rm targets.tar
144
128
145
129
- name : Download target directories (2.13.12)
146
- uses : actions/download-artifact@v2
130
+ uses : actions/download-artifact@v4
147
131
with :
148
132
name : target-${{ matrix.os }}-2.13.12-${{ matrix.java }}
149
133
@@ -153,7 +137,7 @@ jobs:
153
137
rm targets.tar
154
138
155
139
- name : Download target directories (2.13.11)
156
- uses : actions/download-artifact@v2
140
+ uses : actions/download-artifact@v4
157
141
with :
158
142
name : target-${{ matrix.os }}-2.13.11-${{ matrix.java }}
159
143
@@ -163,7 +147,7 @@ jobs:
163
147
rm targets.tar
164
148
165
149
- name : Download target directories (2.13.10)
166
- uses : actions/download-artifact@v2
150
+ uses : actions/download-artifact@v4
167
151
with :
168
152
name : target-${{ matrix.os }}-2.13.10-${{ matrix.java }}
169
153
@@ -173,7 +157,7 @@ jobs:
173
157
rm targets.tar
174
158
175
159
- name : Download target directories (2.13.9)
176
- uses : actions/download-artifact@v2
160
+ uses : actions/download-artifact@v4
177
161
with :
178
162
name : target-${{ matrix.os }}-2.13.9-${{ matrix.java }}
179
163
@@ -183,7 +167,7 @@ jobs:
183
167
rm targets.tar
184
168
185
169
- name : Download target directories (2.13.8)
186
- uses : actions/download-artifact@v2
170
+ uses : actions/download-artifact@v4
187
171
with :
188
172
name : target-${{ matrix.os }}-2.13.8-${{ matrix.java }}
189
173
@@ -193,7 +177,7 @@ jobs:
193
177
rm targets.tar
194
178
195
179
- name : Download target directories (2.13.7)
196
- uses : actions/download-artifact@v2
180
+ uses : actions/download-artifact@v4
197
181
with :
198
182
name : target-${{ matrix.os }}-2.13.7-${{ matrix.java }}
199
183
@@ -203,7 +187,7 @@ jobs:
203
187
rm targets.tar
204
188
205
189
- name : Download target directories (2.13.6)
206
- uses : actions/download-artifact@v2
190
+ uses : actions/download-artifact@v4
207
191
with :
208
192
name : target-${{ matrix.os }}-2.13.6-${{ matrix.java }}
209
193
@@ -213,7 +197,7 @@ jobs:
213
197
rm targets.tar
214
198
215
199
- name : Download target directories (2.13.5)
216
- uses : actions/download-artifact@v2
200
+ uses : actions/download-artifact@v4
217
201
with :
218
202
name : target-${{ matrix.os }}-2.13.5-${{ matrix.java }}
219
203
@@ -223,7 +207,7 @@ jobs:
223
207
rm targets.tar
224
208
225
209
- name : Download target directories (2.13.4)
226
- uses : actions/download-artifact@v2
210
+ uses : actions/download-artifact@v4
227
211
with :
228
212
name : target-${{ matrix.os }}-2.13.4-${{ matrix.java }}
229
213
@@ -233,7 +217,7 @@ jobs:
233
217
rm targets.tar
234
218
235
219
- name : Download target directories (2.13.3)
236
- uses : actions/download-artifact@v2
220
+ uses : actions/download-artifact@v4
237
221
with :
238
222
name : target-${{ matrix.os }}-2.13.3-${{ matrix.java }}
239
223
@@ -243,7 +227,7 @@ jobs:
243
227
rm targets.tar
244
228
245
229
- name : Download target directories (2.13.2)
246
- uses : actions/download-artifact@v2
230
+ uses : actions/download-artifact@v4
247
231
with :
248
232
name : target-${{ matrix.os }}-2.13.2-${{ matrix.java }}
249
233
@@ -253,7 +237,7 @@ jobs:
253
237
rm targets.tar
254
238
255
239
- name : Download target directories (2.12.19)
256
- uses : actions/download-artifact@v2
240
+ uses : actions/download-artifact@v4
257
241
with :
258
242
name : target-${{ matrix.os }}-2.12.19-${{ matrix.java }}
259
243
@@ -263,7 +247,7 @@ jobs:
263
247
rm targets.tar
264
248
265
249
- name : Download target directories (2.12.18)
266
- uses : actions/download-artifact@v2
250
+ uses : actions/download-artifact@v4
267
251
with :
268
252
name : target-${{ matrix.os }}-2.12.18-${{ matrix.java }}
269
253
@@ -273,7 +257,7 @@ jobs:
273
257
rm targets.tar
274
258
275
259
- name : Download target directories (2.12.17)
276
- uses : actions/download-artifact@v2
260
+ uses : actions/download-artifact@v4
277
261
with :
278
262
name : target-${{ matrix.os }}-2.12.17-${{ matrix.java }}
279
263
@@ -283,7 +267,7 @@ jobs:
283
267
rm targets.tar
284
268
285
269
- name : Download target directories (2.12.16)
286
- uses : actions/download-artifact@v2
270
+ uses : actions/download-artifact@v4
287
271
with :
288
272
name : target-${{ matrix.os }}-2.12.16-${{ matrix.java }}
289
273
@@ -293,7 +277,7 @@ jobs:
293
277
rm targets.tar
294
278
295
279
- name : Download target directories (2.12.15)
296
- uses : actions/download-artifact@v2
280
+ uses : actions/download-artifact@v4
297
281
with :
298
282
name : target-${{ matrix.os }}-2.12.15-${{ matrix.java }}
299
283
@@ -303,7 +287,7 @@ jobs:
303
287
rm targets.tar
304
288
305
289
- name : Download target directories (2.12.14)
306
- uses : actions/download-artifact@v2
290
+ uses : actions/download-artifact@v4
307
291
with :
308
292
name : target-${{ matrix.os }}-2.12.14-${{ matrix.java }}
309
293
@@ -313,7 +297,7 @@ jobs:
313
297
rm targets.tar
314
298
315
299
- name : Download target directories (2.12.13)
316
- uses : actions/download-artifact@v2
300
+ uses : actions/download-artifact@v4
317
301
with :
318
302
name : target-${{ matrix.os }}-2.12.13-${{ matrix.java }}
319
303
@@ -323,7 +307,7 @@ jobs:
323
307
rm targets.tar
324
308
325
309
- name : Download target directories (2.11.12)
326
- uses : actions/download-artifact@v2
310
+ uses : actions/download-artifact@v4
327
311
with :
328
312
name : target-${{ matrix.os }}-2.11.12-${{ matrix.java }}
329
313
@@ -337,4 +321,4 @@ jobs:
337
321
PGP_SECRET : ${{ secrets.PGP_SECRET }}
338
322
SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
339
323
SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
340
- run : sbt ++${{ matrix.scala }} ci-release
324
+ run : sbt ci-release
0 commit comments