@@ -42,13 +42,12 @@ jobs:
42
42
git pull https://github.com/google/closure-compiler.git master
43
43
git log -1 | cat
44
44
- name : Get yarn cache directory path
45
- id : yarn-cache-dir-path
46
- run : echo "::set-output name=dir::$(yarn cache dir)"
45
+ run : echo "yarn_cache_dir=$(yarn cache dir)" >> $GITHUB_ENV
47
46
- name : Yarn and maven cache
48
47
uses : actions/cache@v3
49
48
with :
50
49
path : |
51
- ${{ steps.yarn-cache-dir-path.outputs.dir }}
50
+ ${{ env.yarn_cache_dir }}
52
51
~/.m2/repository
53
52
key : ${{ runner.os }}-yarn-mvn-java11-${{ hashFiles('**/yarn.lock', '**/pom.xml') }}
54
53
- name : Install packages
@@ -102,23 +101,22 @@ jobs:
102
101
tar -xf upx-$UPX_VERSION-amd64_linux.tar.xz
103
102
mv ./upx-$UPX_VERSION-amd64_linux/upx /usr/local/bin/upx
104
103
- name : Download compiler jar
105
- uses : actions/download-artifact@v2
104
+ uses : actions/download-artifact@v3
106
105
with :
107
106
name : Compiler.jar
108
107
path : packages/google-closure-compiler-java/
109
108
- name : Download contrib folder
110
- uses : actions/download-artifact@v2
109
+ uses : actions/download-artifact@v3
111
110
with :
112
111
name : Contrib folder
113
112
path : packages/google-closure-compiler/contrib
114
113
- name : Get yarn cache directory path
115
- id : yarn-cache-dir-path
116
- run : echo "::set-output name=dir::$(yarn cache dir)"
114
+ run : echo "yarn_cache_dir=$(yarn cache dir)" >> $GITHUB_ENV
117
115
- name : Cache yarn
118
116
uses : actions/cache@v3
119
117
id : yarn-cache
120
118
with :
121
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
119
+ path : ${{ env.yarn_cache_dir }}
122
120
key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
123
121
restore-keys : |
124
122
${{ runner.os }}-yarn-
@@ -168,23 +166,22 @@ jobs:
168
166
- name : Install upx
169
167
run : brew install upx
170
168
- name : Download compiler jar
171
- uses : actions/download-artifact@v2
169
+ uses : actions/download-artifact@v3
172
170
with :
173
171
name : Compiler.jar
174
172
path : packages/google-closure-compiler-java/
175
173
- name : Download contrib folder
176
- uses : actions/download-artifact@v2
174
+ uses : actions/download-artifact@v3
177
175
with :
178
176
name : Contrib folder
179
177
path : packages/google-closure-compiler/contrib
180
178
- name : Get yarn cache directory path
181
- id : yarn-cache-dir-path
182
- run : echo "::set-output name=dir::$(yarn cache dir)"
179
+ run : echo "yarn_cache_dir=$(yarn cache dir)" >> $GITHUB_ENV
183
180
- name : Cache yarn
184
181
uses : actions/cache@v3
185
182
id : yarn-cache
186
183
with :
187
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
184
+ path : ${{ env.yarn_cache_dir }}
188
185
key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
189
186
restore-keys : |
190
187
${{ runner.os }}-yarn-
@@ -232,23 +229,23 @@ jobs:
232
229
components : ' native-image'
233
230
github-token : ${{ secrets.GITHUB_TOKEN }}
234
231
- name : Download compiler jar
235
- uses : actions/download-artifact@v2
232
+ uses : actions/download-artifact@v3
236
233
with :
237
234
name : Compiler.jar
238
235
path : packages/google-closure-compiler-java/
239
236
- name : Download contrib folder
240
- uses : actions/download-artifact@v2
237
+ uses : actions/download-artifact@v3
241
238
with :
242
239
name : Contrib folder
243
240
path : packages/google-closure-compiler/contrib
244
241
- name : Get yarn cache directory path
245
- id : yarn-cache-dir-path
246
- run : echo "::set-output name=dir:: $(yarn cache dir)"
242
+ # See https://stackoverflow.com/a/66737579/1211524
243
+ run : echo "yarn_cache_dir= $(yarn cache dir)" >> $env:GITHUB_ENV
247
244
- name : Cache yarn
248
245
uses : actions/cache@v3
249
246
id : yarn-cache
250
247
with :
251
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
248
+ path : ${{ env.yarn_cache_dir }}
252
249
key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
253
250
restore-keys : |
254
251
${{ runner.os }}-yarn-
@@ -292,27 +289,27 @@ jobs:
292
289
node-version : ${{ env.NODE_VERSION }}
293
290
registry-url : https://registry.npmjs.org/
294
291
- name : Download compiler jar
295
- uses : actions/download-artifact@v2
292
+ uses : actions/download-artifact@v3
296
293
with :
297
294
name : Compiler.jar
298
295
path : packages/google-closure-compiler-java/
299
296
- name : Download Linux image
300
- uses : actions/download-artifact@v2
297
+ uses : actions/download-artifact@v3
301
298
with :
302
299
name : Linux image
303
300
path : packages/google-closure-compiler-linux/
304
301
- name : Download MacOS image
305
- uses : actions/download-artifact@v2
302
+ uses : actions/download-artifact@v3
306
303
with :
307
304
name : MacOS image
308
305
path : packages/google-closure-compiler-osx/
309
306
- name : Download Windows image
310
- uses : actions/download-artifact@v2
307
+ uses : actions/download-artifact@v3
311
308
with :
312
309
name : Windows image
313
310
path : packages/google-closure-compiler-windows/
314
311
- name : Download contrib folder
315
- uses : actions/download-artifact@v2
312
+ uses : actions/download-artifact@v3
316
313
with :
317
314
name : Contrib folder
318
315
path : packages/google-closure-compiler/contrib
@@ -322,13 +319,12 @@ jobs:
322
319
chmod 755 packages/google-closure-compiler-osx/compiler
323
320
chmod 755 packages/google-closure-compiler-windows/compiler.exe
324
321
- name : Get yarn cache directory path
325
- id : yarn-cache-dir-path
326
- run : echo "::set-output name=dir::$(yarn cache dir)"
322
+ run : echo "yarn_cache_dir=$(yarn cache dir)" >> $GITHUB_ENV
327
323
- name : Cache yarn
328
324
uses : actions/cache@v3
329
325
id : yarn-cache
330
326
with :
331
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
327
+ path : ${{ env.yarn_cache_dir }}
332
328
key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
333
329
restore-keys : |
334
330
${{ runner.os }}-yarn-
0 commit comments