Skip to content

Commit aac26ec

Browse files
committed
ci: Update actions
This commit updates the version of the actions used in the CI workflow to prevent the Node 12 deprecation warnings. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 43582cc commit aac26ec

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ jobs:
9292
steps:
9393
- name: Check out source code
9494
if: ${{ github.event_name != 'pull_request_target' }}
95-
uses: actions/checkout@v2
95+
uses: actions/checkout@v3
9696
with:
9797
fetch-depth: 0
9898
persist-credentials: false
9999

100100
- name: Check out source code (pull request)
101101
if: ${{ github.event_name == 'pull_request_target' }}
102-
uses: actions/checkout@v2
102+
uses: actions/checkout@v3
103103
with:
104104
ref: ${{ github.event.pull_request.head.sha }}
105105
fetch-depth: 0
@@ -111,7 +111,7 @@ jobs:
111111
echo "${VERSION:1}" > version
112112
113113
- name: Upload version file
114-
uses: actions/upload-artifact@v2
114+
uses: actions/upload-artifact@v3
115115
with:
116116
name: version
117117
path: version
@@ -516,14 +516,14 @@ jobs:
516516
517517
- name: Check out source code
518518
if: ${{ github.event_name != 'pull_request_target' }}
519-
uses: actions/checkout@v2
519+
uses: actions/checkout@v3
520520
with:
521521
submodules: recursive
522522
persist-credentials: false
523523

524524
- name: Check out source code (pull request)
525525
if: ${{ github.event_name == 'pull_request_target' }}
526-
uses: actions/checkout@v2
526+
uses: actions/checkout@v3
527527
with:
528528
ref: ${{ github.event.pull_request.head.sha }}
529529
submodules: recursive
@@ -565,13 +565,13 @@ jobs:
565565
${CT_NG} version
566566
567567
- name: Download version information
568-
uses: actions/download-artifact@v2
568+
uses: actions/download-artifact@v3
569569
with:
570570
name: version
571571
path: ${{ runner.temp }}
572572

573573
- name: Configure AWS Credentials
574-
uses: aws-actions/configure-aws-credentials@v1
574+
uses: aws-actions/configure-aws-credentials@v1-node16
575575
with:
576576
aws-access-key-id: ${{ secrets.AWS_CACHE_SDK_ACCESS_KEY_ID }}
577577
aws-secret-access-key: ${{ secrets.AWS_CACHE_SDK_SECRET_ACCESS_KEY }}
@@ -789,13 +789,13 @@ jobs:
789789
790790
- name: Upload toolchain build log
791791
if: always()
792-
uses: actions/upload-artifact@v2
792+
uses: actions/upload-artifact@v3
793793
with:
794794
name: log_${{ matrix.host.name }}_${{ matrix.target }}
795795
path: ${{ matrix.target }}.log
796796

797797
- name: Upload toolchain build artifact
798-
uses: actions/upload-artifact@v2
798+
uses: actions/upload-artifact@v3
799799
with:
800800
name: toolchain_${{ matrix.host.name }}_${{ matrix.target }}
801801
path: |
@@ -852,21 +852,21 @@ jobs:
852852
853853
- name: Check out source code
854854
if: ${{ github.event_name != 'pull_request_target' }}
855-
uses: actions/checkout@v2
855+
uses: actions/checkout@v3
856856
with:
857857
submodules: recursive
858858
persist-credentials: false
859859

860860
- name: Check out source code (pull request)
861861
if: ${{ github.event_name == 'pull_request_target' }}
862-
uses: actions/checkout@v2
862+
uses: actions/checkout@v3
863863
with:
864864
ref: ${{ github.event.pull_request.head.sha }}
865865
submodules: recursive
866866
persist-credentials: false
867867

868868
- name: Configure AWS Credentials
869-
uses: aws-actions/configure-aws-credentials@v1
869+
uses: aws-actions/configure-aws-credentials@v1-node16
870870
with:
871871
aws-access-key-id: ${{ secrets.AWS_CACHE_SDK_ACCESS_KEY_ID }}
872872
aws-secret-access-key: ${{ secrets.AWS_CACHE_SDK_SECRET_ACCESS_KEY }}
@@ -945,7 +945,7 @@ jobs:
945945
946946
- name: Upload toolchain build artifact
947947
if: startsWith(matrix.host.name, 'linux-') # FIXME: Do for all
948-
uses: actions/upload-artifact@v2
948+
uses: actions/upload-artifact@v3
949949
with:
950950
name: hosttools_${{ matrix.host.name }}
951951
path: |
@@ -1007,13 +1007,13 @@ jobs:
10071007
10081008
- name: Check out source code
10091009
if: ${{ github.event_name != 'pull_request_target' }}
1010-
uses: actions/checkout@v2
1010+
uses: actions/checkout@v3
10111011
with:
10121012
persist-credentials: false
10131013

10141014
- name: Check out source code (pull request)
10151015
if: ${{ github.event_name == 'pull_request_target' }}
1016-
uses: actions/checkout@v2
1016+
uses: actions/checkout@v3
10171017
with:
10181018
ref: ${{ github.event.pull_request.head.sha }}
10191019
persist-credentials: false
@@ -1037,7 +1037,7 @@ jobs:
10371037
sha256sum ${ARCHIVE_FILE} > sha256.sum
10381038
10391039
- name: Upload CMake package build artifact
1040-
uses: actions/upload-artifact@v2
1040+
uses: actions/upload-artifact@v3
10411041
with:
10421042
name: cmake_${{ matrix.host.name }}
10431043
path: |
@@ -1096,21 +1096,21 @@ jobs:
10961096
10971097
- name: Check out source code
10981098
if: ${{ github.event_name != 'pull_request_target' }}
1099-
uses: actions/checkout@v2
1099+
uses: actions/checkout@v3
11001100
with:
11011101
path: repository
11021102
persist-credentials: false
11031103

11041104
- name: Check out source code (pull request)
11051105
if: ${{ github.event_name == 'pull_request_target' }}
1106-
uses: actions/checkout@v2
1106+
uses: actions/checkout@v3
11071107
with:
11081108
ref: ${{ github.event.pull_request.head.sha }}
11091109
path: repository
11101110
persist-credentials: false
11111111

11121112
- name: Download artifacts
1113-
uses: actions/download-artifact@v2
1113+
uses: actions/download-artifact@v3
11141114
with:
11151115
# NOTE: This downloads all build artifacts, including the toolchains and host tools for
11161116
# the irrelevant hosts, because the download-artifact action does not support
@@ -1223,7 +1223,7 @@ jobs:
12231223
sha256sum ${ARCHIVE_NAME}.${EXT} ${ARCHIVE_NAME}_minimal.${EXT} > sha256.sum
12241224
12251225
- name: Upload distribution bundle
1226-
uses: actions/upload-artifact@v2
1226+
uses: actions/upload-artifact@v3
12271227
with:
12281228
name: ${{ env.BUNDLE_ARCHIVE_NAME }}
12291229
path: |
@@ -1256,7 +1256,7 @@ jobs:
12561256

12571257
steps:
12581258
- name: Set up Python
1259-
uses: actions/setup-python@v2
1259+
uses: actions/setup-python@v4
12601260
with:
12611261
# Force Python 3.10 because the twister is not compatible with a Python
12621262
# version lower than 3.8 on Windows.
@@ -1340,7 +1340,7 @@ jobs:
13401340
echo "ARTIFACT_ROOT=${GITHUB_WORKSPACE}/artifacts" >> $GITHUB_ENV
13411341
13421342
- name: Download version information
1343-
uses: actions/download-artifact@v2
1343+
uses: actions/download-artifact@v3
13441344
with:
13451345
name: version
13461346
path: artifacts
@@ -1359,7 +1359,7 @@ jobs:
13591359
echo "BUNDLE_DIR=${BUNDLE_DIR}" >> $GITHUB_ENV
13601360
13611361
- name: Download distribution bundle
1362-
uses: actions/download-artifact@v2
1362+
uses: actions/download-artifact@v3
13631363
with:
13641364
name: ${{ env.BUNDLE_NAME }}
13651365
path: artifacts
@@ -1534,7 +1534,7 @@ jobs:
15341534
15351535
- name: Publish test results
15361536
if: always()
1537-
uses: actions/upload-artifact@v2
1537+
uses: actions/upload-artifact@v3
15381538
with:
15391539
name: test_${{ matrix.testenv.name }}_${{ matrix.subset }}
15401540
if-no-files-found: ignore

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
rm -rf ${GITHUB_WORKSPACE}/*
3535
3636
- name: Download build artifacts
37-
uses: actions/download-artifact@v2
37+
uses: actions/download-artifact@v3
3838
with:
3939
path: artifacts
4040

0 commit comments

Comments
 (0)