Skip to content

Commit e4286d6

Browse files
cynthiajoanCynthia Jiang
andauthored
update workflow files to reduce warnings (#1115)
* remove @ref after @deprecated to bypass devsite check * Update actions using node12 to node16 * more actions * update actions/cache * deprecating set-output * update microsoft/setup-msbuild * download_artifacts and delete_artifacts * Update firebase-test-lab version * fix type of device-type Co-authored-by: Cynthia Jiang <[email protected]>
1 parent 88ad013 commit e4286d6

File tree

10 files changed

+156
-150
lines changed

10 files changed

+156
-150
lines changed

.github/workflows/android.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
matrix_architecture: ${{ steps.export-result.outputs.matrix_architecture }}
2828
matrix_python_version: ${{ steps.export-result.outputs.matrix_python_version }}
2929
steps:
30-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v3
3131
with:
3232
submodules: false
3333
- name: Use expanded matrix
@@ -36,9 +36,9 @@ jobs:
3636
echo "EXPANDED_MATRIX_PARAM=-e=1" >> $GITHUB_ENV
3737
- id: export-result
3838
run: |
39-
echo "::set-output name=matrix_os::$( python scripts/gha/print_matrix_configuration.py -w android -k os ${EXPANDED_MATRIX_PARAM} )"
40-
echo "::set-output name=matrix_architecture::$( python scripts/gha/print_matrix_configuration.py -w android -k architecture ${EXPANDED_MATRIX_PARAM} )"
41-
echo "::set-output name=matrix_python_version::$( python scripts/gha/print_matrix_configuration.py -w android -k python_version ${EXPANDED_MATRIX_PARAM} )"
39+
echo "matrix_os=$( python scripts/gha/print_matrix_configuration.py -w android -k os ${EXPANDED_MATRIX_PARAM} )" >> $GITHUB_OUTPUT
40+
echo "matrix_architecture=$( python scripts/gha/print_matrix_configuration.py -w android -k architecture ${EXPANDED_MATRIX_PARAM} )" >> $GITHUB_OUTPUT
41+
echo "matrix_python_version=$( python scripts/gha/print_matrix_configuration.py -w android -k python_version ${EXPANDED_MATRIX_PARAM} )" >> $GITHUB_OUTPUT
4242
4343
build:
4444
name: android-${{ matrix.os }}-${{ matrix.architecture }}-${{ matrix.python_version }}
@@ -72,7 +72,7 @@ jobs:
7272
echo "Enabling expanded build and test matrix."
7373
echo "USE_EXPANDED_MATRIX=1" >> $GITHUB_ENV
7474
75-
- uses: actions/checkout@v2
75+
- uses: actions/checkout@v3
7676
with:
7777
submodules: true
7878

@@ -83,18 +83,18 @@ jobs:
8383
echo "GHA_INSTALL_CCACHE=1" >> $GITHUB_ENV
8484
8585
- name: Setup python
86-
uses: actions/setup-python@v2
86+
uses: actions/setup-python@v4
8787
with:
8888
python-version: ${{ matrix.python_version }}
8989
architecture: ${{ matrix.architecture }}
9090

9191
- name: Add msbuild to PATH
9292
if: startsWith(matrix.os, 'windows')
93-
uses: microsoft/setup-msbuild@v1.0.2
93+
uses: microsoft/setup-msbuild@v1.1
9494

9595
- name: Cache NDK
9696
id: cache_ndk
97-
uses: actions/cache@v2
97+
uses: actions/cache@v3
9898
with:
9999
path: /tmp/android-ndk-r21e
100100
key: android-ndk-${{ matrix.os }}-r21e
@@ -139,7 +139,7 @@ jobs:
139139
140140
- name: Cache ccache files
141141
id: cache_ccache
142-
uses: actions/cache@v2
142+
uses: actions/cache@v3
143143
with:
144144
path: ccache_dir
145145
key: dev-test-ccache-${{ env.MATRIX_UNIQUE_NAME }}

.github/workflows/checks.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
file_format_check:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v3
2323
with:
2424
submodules: false
2525
- name: Setup python
26-
uses: actions/setup-python@v2
26+
uses: actions/setup-python@v4
2727
with:
2828
python-version: 3.7
2929
- name: Install prerequisites
@@ -51,11 +51,11 @@ jobs:
5151
# This check succeeds if Doxygen documentation generates without errors.
5252
runs-on: ubuntu-latest
5353
steps:
54-
- uses: actions/checkout@v2
54+
- uses: actions/checkout@v3
5555
with:
5656
submodules: false
5757
- name: Setup python
58-
uses: actions/setup-python@v2
58+
uses: actions/setup-python@v4
5959
with:
6060
python-version: 3.7
6161
- name: Install prerequisites
@@ -90,7 +90,7 @@ jobs:
9090
# Check for Google copyright in each file.
9191
runs-on: ubuntu-latest
9292
steps:
93-
- uses: actions/checkout@v2
93+
- uses: actions/checkout@v3
9494
with:
9595
submodules: false
9696
- name: Run check_copyright.sh
@@ -102,7 +102,7 @@ jobs:
102102
# Check that the readme was updated, unless the PR has a specific label set (env.skipReleaseNotesLabel).
103103
runs-on: ubuntu-latest
104104
steps:
105-
- uses: actions/checkout@v2
105+
- uses: actions/checkout@v3
106106
# Skip this if the PR has the skipReleaseNotes label or if it's a merge to other than main.
107107
if: ${{!contains(github.event.pull_request.labels.*.name, env.skipReleaseNotesLabel) && (github.event.pull_request.base.ref == 'main')}}
108108
with:

.github/workflows/checks_secure.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
required-permission: admin
2424
env:
2525
GITHUB_TOKEN: ${{ github.token }}
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v3
2727
if: steps.check.outputs.has-permission != 1 || github.event.pull_request.head.repo.full_name != github.repository
2828
with:
2929
submodules: false
3030
- name: Setup python
3131
if: steps.check.outputs.has-permission != 1 || github.event.pull_request.head.repo.full_name != github.repository
32-
uses: actions/setup-python@v2
32+
uses: actions/setup-python@v4
3333
with:
3434
python-version: 3.7
3535
- name: Install prerequisites

.github/workflows/cpp-packaging.yml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcodeVersion }}.app/Contents/Developer
9696

9797
- name: Setup python
98-
uses: actions/setup-python@v2
98+
uses: actions/setup-python@v4
9999
with:
100100
python-version: 3.7
101101

@@ -125,15 +125,15 @@ jobs:
125125
- name: Cache LLVM (Mac only)
126126
if: matrix.tools_platform == 'darwin'
127127
id: cache_llvm
128-
uses: actions/cache@v2
128+
uses: actions/cache@v3
129129
with:
130130
path: llvm-src/llvm/build/bin
131131
key: llvm-bin-${{matrix.tools_platform}}-${{env.xcodeVersion}}-${{env.llvmVer}}
132132

133133
- name: Fetch LLVM source (Mac only)
134134
# Only fetch LLVM if we don't already have binaries from the cache.
135135
if: ${{ matrix.tools_platform == 'darwin' && !steps.cache_llvm.outputs.cache-hit }}
136-
uses: actions/checkout@v2.3.1
136+
uses: actions/checkout@v3
137137
with:
138138
repository: llvm/llvm-project
139139
path: llvm-src
@@ -155,7 +155,7 @@ jobs:
155155
cp -af llvm-src/llvm/build/bin/* packaging-tools
156156
157157
- name: fetch demumble
158-
uses: actions/checkout@v2.3.1
158+
uses: actions/checkout@v3
159159
with:
160160
repository: nico/demumble
161161
path: demumble-src
@@ -178,7 +178,7 @@ jobs:
178178
tar -czhf ../packaging-tools.tgz .
179179
180180
- name: upload artifacts
181-
uses: actions/upload-artifact@v2.2.2
181+
uses: actions/upload-artifact@v3
182182
with:
183183
name: packaging-tools-${{ matrix.tools_platform }}
184184
path: packaging-tools.tgz
@@ -200,12 +200,12 @@ jobs:
200200
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcodeVersion }}.app/Contents/Developer
201201

202202
- name: fetch SDK
203-
uses: actions/checkout@v2.3.1
203+
uses: actions/checkout@v3
204204
with:
205205
path: sdk-src
206206

207207
- name: Setup python
208-
uses: actions/setup-python@v2
208+
uses: actions/setup-python@v4
209209
with:
210210
python-version: 3.7
211211

@@ -236,7 +236,7 @@ jobs:
236236
find firebase-cpp-sdk-*-package -type f
237237
238238
- name: upload artifacts
239-
uses: actions/upload-artifact@v2.2.2
239+
uses: actions/upload-artifact@v3
240240
with:
241241
name: firebase-cpp-sdk-ios-tvos-package
242242
path: firebase-cpp-sdk-ios-tvos-package.tgz
@@ -249,7 +249,7 @@ jobs:
249249
fail-fast: false
250250
steps:
251251
- name: fetch SDK
252-
uses: actions/checkout@v2.3.1
252+
uses: actions/checkout@v3
253253
with:
254254
path: sdk-src
255255

@@ -262,7 +262,7 @@ jobs:
262262
263263
- name: Cache NDK
264264
id: cache_ndk
265-
uses: actions/cache@v2
265+
uses: actions/cache@v3
266266
with:
267267
path: /tmp/android-ndk-r21e
268268
key: android-ndk-${{ runner.os }}-r21e
@@ -293,7 +293,7 @@ jobs:
293293
find firebase-cpp-sdk-*-package -type f
294294
295295
- name: upload artifacts
296-
uses: actions/upload-artifact@v2.2.2
296+
uses: actions/upload-artifact@v3
297297
with:
298298
name: firebase-cpp-sdk-android-package
299299
path: firebase-cpp-sdk-android-package.tgz
@@ -362,7 +362,7 @@ jobs:
362362
if: runner.os == 'macOS'
363363
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcodeVersion }}.app/Contents/Developer
364364

365-
- uses: actions/checkout@v2
365+
- uses: actions/checkout@v3
366366
with:
367367
submodules: true
368368

@@ -379,25 +379,25 @@ jobs:
379379
380380
- name: Add msbuild to PATH (windows)
381381
if: startsWith(matrix.os, 'windows')
382-
uses: microsoft/setup-msbuild@v1.0.2
382+
uses: microsoft/setup-msbuild@v1.1
383383

384384
- name: Cache vcpkg C++ dependencies
385385
id: cache_vcpkg
386-
uses: actions/cache@v2
386+
uses: actions/cache@v3
387387
with:
388388
path: external/vcpkg/installed
389389
key: dev-vcpkg-${{ matrix.architecture }}-${{ matrix.vcpkg_triplet_suffix }}-${{ matrix.msvc_runtime }}-${{ matrix.linux_abi }}-${{ hashFiles(format('{0}', env.VCPKG_RESPONSE_FILE)) }}-${{ hashFiles('.git/modules/external/vcpkg/HEAD') }}${{env.VCPKG_EXTRA_HASH}}
390390

391391
- name: Cache ccache files
392392
if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macos')
393393
id: cache_ccache
394-
uses: actions/cache@v2
394+
uses: actions/cache@v3
395395
with:
396396
path: ccache_dir
397397
key: dev-test-ccache-${{ env.MATRIX_UNIQUE_NAME }}
398398

399399
- name: Setup python
400-
uses: actions/setup-python@v2
400+
uses: actions/setup-python@v4
401401
with:
402402
python-version: ${{ matrix.python_version }}
403403

@@ -449,7 +449,7 @@ jobs:
449449
continue-on-error: true
450450

451451
- name: upload artifacts
452-
uses: actions/upload-artifact@v2.2.2
452+
uses: actions/upload-artifact@v3
453453
with:
454454
name: firebase-cpp-sdk-${{ env.SDK_NAME }}-build
455455
path: firebase-cpp-sdk-${{ env.SDK_NAME }}-build.tgz
@@ -504,19 +504,19 @@ jobs:
504504
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcodeVersion }}.app/Contents/Developer
505505

506506
- name: fetch SDK
507-
uses: actions/checkout@v2.3.1
507+
uses: actions/checkout@v3
508508
with:
509509
path: sdk-src
510510

511511
- name: download artifact
512-
uses: actions/download-artifact@v2.0.8
512+
uses: actions/download-artifact@v3
513513
with:
514514
# download-artifact doesn't support wildcards, but by default
515515
# will download all artifacts. Sadly this is what we must do.
516516
path: artifacts
517517

518518
- name: Setup python
519-
uses: actions/setup-python@v2
519+
uses: actions/setup-python@v4
520520
with:
521521
python-version: 3.7
522522

@@ -584,7 +584,7 @@ jobs:
584584
find firebase-cpp-sdk-*-package -type f
585585
586586
- name: upload SDK zip
587-
uses: actions/upload-artifact@v2.2.2
587+
uses: actions/upload-artifact@v3
588588
with:
589589
name: firebase-cpp-sdk-${{ matrix.sdk_platform }}${{ matrix.suffix}}-package
590590
path: firebase-cpp-sdk-${{ matrix.sdk_platform }}${{ matrix.suffix}}-package.tgz
@@ -639,7 +639,7 @@ jobs:
639639
&& github.event.inputs.downloadPreviousRun == ''
640640
)
641641
# Remove the build artifacts that were consumed during this step of packaging.
642-
uses: geekyeggo/delete-artifact@1-glob-support
642+
uses: geekyeggo/delete-artifact@v2
643643
with:
644644
name: |
645645
firebase-cpp-sdk-${{ matrix.sdk_platform }}${{ matrix.suffix }}*-build
@@ -685,13 +685,13 @@ jobs:
685685
echo "::warning ::$(cat firebase_cpp_sdk_hash.txt)"
686686
687687
- name: upload hash
688-
uses: actions/upload-artifact@v2.2.2
688+
uses: actions/upload-artifact@v3
689689
with:
690690
name: firebase_cpp_sdk_hash.txt
691691
path: firebase_cpp_sdk_hash.txt
692692

693693
- name: upload SDK zip
694-
uses: actions/upload-artifact@v2.2.2
694+
uses: actions/upload-artifact@v3
695695
with:
696696
name: firebase_cpp_sdk.zip
697697
path: firebase_cpp_sdk.zip
@@ -704,12 +704,12 @@ jobs:
704704
needs: [build_and_package_ios_tvos, build_and_package_android, package_desktop, log_inputs]
705705
steps:
706706
- name: fetch SDK
707-
uses: actions/checkout@v2.3.1
707+
uses: actions/checkout@v3
708708
with:
709709
path: sdk-src
710710

711711
- name: download artifact
712-
uses: actions/download-artifact@v2.0.8
712+
uses: actions/download-artifact@v3
713713
with:
714714
# download-artifact doesn't support wildcards, but by default
715715
# will download all artifacts. Sadly this is what we must do.
@@ -748,13 +748,13 @@ jobs:
748748
find firebase_cpp_sdk -type f
749749
750750
- name: upload hash
751-
uses: actions/upload-artifact@v2.2.2
751+
uses: actions/upload-artifact@v3
752752
with:
753753
name: firebase_cpp_sdk_hash.txt
754754
path: firebase_cpp_sdk_hash.txt
755755

756756
- name: upload SDK zip
757-
uses: actions/upload-artifact@v2.2.2
757+
uses: actions/upload-artifact@v3
758758
with:
759759
name: firebase_cpp_sdk.zip
760760
path: firebase_cpp_sdk.zip
@@ -772,7 +772,7 @@ jobs:
772772
&& github.event.inputs.downloadPreviousRun == ''
773773
)
774774
steps:
775-
- uses: geekyeggo/delete-artifact@1-glob-support
775+
- uses: geekyeggo/delete-artifact@v2
776776
with:
777777
name: |
778778
packaging-tools-*
@@ -787,10 +787,10 @@ jobs:
787787
runs-on: ubuntu-latest
788788
steps:
789789
- name: Checkout repo
790-
uses: actions/checkout@v2.3.1
790+
uses: actions/checkout@v3
791791

792792
- name: Setup python
793-
uses: actions/setup-python@v2
793+
uses: actions/setup-python@v4
794794
with:
795795
python-version: '3.7'
796796
- name: Use expanded matrix

0 commit comments

Comments
 (0)