Skip to content

Commit f870fba

Browse files
committed
ci: Upgrade to the latest actions
This commit updates the CI workflows to use the latest actions available at the time of this commit to avoid the scheduled deprecations. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
1 parent 0c5b22f commit f870fba

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ jobs:
100100
steps:
101101
- name: Check out source code
102102
if: ${{ github.event_name != 'pull_request_target' }}
103-
uses: actions/checkout@v3
103+
uses: actions/checkout@v4
104104
with:
105105
fetch-depth: 0
106106
persist-credentials: false
107107

108108
- name: Check out source code (pull request)
109109
if: ${{ github.event_name == 'pull_request_target' }}
110-
uses: actions/checkout@v3
110+
uses: actions/checkout@v4
111111
with:
112112
ref: ${{ github.event.pull_request.head.sha }}
113113
fetch-depth: 0
@@ -119,7 +119,7 @@ jobs:
119119
echo "${VERSION:1}" > version
120120
121121
- name: Upload version file
122-
uses: actions/upload-artifact@v3
122+
uses: actions/upload-artifact@v4
123123
with:
124124
name: version
125125
path: version
@@ -558,14 +558,14 @@ jobs:
558558
559559
- name: Check out source code
560560
if: ${{ github.event_name != 'pull_request_target' }}
561-
uses: actions/checkout@v3
561+
uses: actions/checkout@v4
562562
with:
563563
submodules: recursive
564564
persist-credentials: false
565565

566566
- name: Check out source code (pull request)
567567
if: ${{ github.event_name == 'pull_request_target' }}
568-
uses: actions/checkout@v3
568+
uses: actions/checkout@v4
569569
with:
570570
ref: ${{ github.event.pull_request.head.sha }}
571571
submodules: recursive
@@ -607,13 +607,13 @@ jobs:
607607
${CT_NG} version
608608
609609
- name: Download version information
610-
uses: actions/download-artifact@v3
610+
uses: actions/download-artifact@v4
611611
with:
612612
name: version
613613
path: ${{ runner.temp }}
614614

615615
- name: Configure AWS Credentials
616-
uses: aws-actions/configure-aws-credentials@v1-node16
616+
uses: aws-actions/configure-aws-credentials@v4
617617
with:
618618
aws-access-key-id: ${{ secrets.AWS_CACHE_SDK_ACCESS_KEY_ID }}
619619
aws-secret-access-key: ${{ secrets.AWS_CACHE_SDK_SECRET_ACCESS_KEY }}
@@ -811,13 +811,13 @@ jobs:
811811
812812
- name: Upload toolchain build log
813813
if: always()
814-
uses: actions/upload-artifact@v3
814+
uses: actions/upload-artifact@v4
815815
with:
816816
name: log_${{ matrix.host.name }}_${{ matrix.target }}
817817
path: ${{ matrix.target }}.log
818818

819819
- name: Upload toolchain build artifact
820-
uses: actions/upload-artifact@v3
820+
uses: actions/upload-artifact@v4
821821
with:
822822
name: toolchain_${{ matrix.host.name }}_${{ matrix.target }}
823823
path: |
@@ -875,21 +875,21 @@ jobs:
875875
876876
- name: Check out source code
877877
if: ${{ github.event_name != 'pull_request_target' }}
878-
uses: actions/checkout@v3
878+
uses: actions/checkout@v4
879879
with:
880880
submodules: recursive
881881
persist-credentials: false
882882

883883
- name: Check out source code (pull request)
884884
if: ${{ github.event_name == 'pull_request_target' }}
885-
uses: actions/checkout@v3
885+
uses: actions/checkout@v4
886886
with:
887887
ref: ${{ github.event.pull_request.head.sha }}
888888
submodules: recursive
889889
persist-credentials: false
890890

891891
- name: Configure AWS Credentials
892-
uses: aws-actions/configure-aws-credentials@v1-node16
892+
uses: aws-actions/configure-aws-credentials@v4
893893
with:
894894
aws-access-key-id: ${{ secrets.AWS_CACHE_SDK_ACCESS_KEY_ID }}
895895
aws-secret-access-key: ${{ secrets.AWS_CACHE_SDK_SECRET_ACCESS_KEY }}
@@ -963,7 +963,7 @@ jobs:
963963
964964
- name: Upload toolchain build artifact
965965
if: startsWith(matrix.host.name, 'linux-') # FIXME: Do for all
966-
uses: actions/upload-artifact@v3
966+
uses: actions/upload-artifact@v4
967967
with:
968968
name: hosttools_${{ matrix.host.name }}
969969
path: |
@@ -1026,13 +1026,13 @@ jobs:
10261026
10271027
- name: Check out source code
10281028
if: ${{ github.event_name != 'pull_request_target' }}
1029-
uses: actions/checkout@v3
1029+
uses: actions/checkout@v4
10301030
with:
10311031
persist-credentials: false
10321032

10331033
- name: Check out source code (pull request)
10341034
if: ${{ github.event_name == 'pull_request_target' }}
1035-
uses: actions/checkout@v3
1035+
uses: actions/checkout@v4
10361036
with:
10371037
ref: ${{ github.event.pull_request.head.sha }}
10381038
persist-credentials: false
@@ -1056,7 +1056,7 @@ jobs:
10561056
sha256sum ${ARCHIVE_FILE} > sha256.sum
10571057
10581058
- name: Upload CMake package build artifact
1059-
uses: actions/upload-artifact@v3
1059+
uses: actions/upload-artifact@v4
10601060
with:
10611061
name: cmake_${{ matrix.host.name }}
10621062
path: |
@@ -1116,21 +1116,21 @@ jobs:
11161116
11171117
- name: Check out source code
11181118
if: ${{ github.event_name != 'pull_request_target' }}
1119-
uses: actions/checkout@v3
1119+
uses: actions/checkout@v4
11201120
with:
11211121
path: repository
11221122
persist-credentials: false
11231123

11241124
- name: Check out source code (pull request)
11251125
if: ${{ github.event_name == 'pull_request_target' }}
1126-
uses: actions/checkout@v3
1126+
uses: actions/checkout@v4
11271127
with:
11281128
ref: ${{ github.event.pull_request.head.sha }}
11291129
path: repository
11301130
persist-credentials: false
11311131

11321132
- name: Download artifacts
1133-
uses: actions/download-artifact@v3
1133+
uses: actions/download-artifact@v4
11341134
with:
11351135
# NOTE: This downloads all build artifacts, including the toolchains and host tools for
11361136
# the irrelevant hosts, because the download-artifact action does not support
@@ -1245,7 +1245,7 @@ jobs:
12451245
sha256sum ${ARCHIVE_NAME}.${EXT} ${ARCHIVE_NAME}_minimal.${EXT} > sha256.sum
12461246
12471247
- name: Upload distribution bundle
1248-
uses: actions/upload-artifact@v3
1248+
uses: actions/upload-artifact@v4
12491249
with:
12501250
name: ${{ env.BUNDLE_ARCHIVE_NAME }}
12511251
path: |
@@ -1279,7 +1279,7 @@ jobs:
12791279
steps:
12801280
- name: Set up Python
12811281
if: ${{ runner.os == 'Windows' }}
1282-
uses: actions/setup-python@v4
1282+
uses: actions/setup-python@v5
12831283
with:
12841284
# Force Python 3.10 because the twister is not compatible with a Python
12851285
# version lower than 3.8 on Windows.
@@ -1363,7 +1363,7 @@ jobs:
13631363
echo "VENV_ACTIVATE=${VENV_ACTIVATE}" >> $GITHUB_ENV
13641364
13651365
- name: Download version information
1366-
uses: actions/download-artifact@v3
1366+
uses: actions/download-artifact@v4
13671367
with:
13681368
name: version
13691369
path: artifacts
@@ -1382,7 +1382,7 @@ jobs:
13821382
echo "BUNDLE_DIR=${BUNDLE_DIR}" >> $GITHUB_ENV
13831383
13841384
- name: Download distribution bundle
1385-
uses: actions/download-artifact@v3
1385+
uses: actions/download-artifact@v4
13861386
with:
13871387
name: ${{ env.BUNDLE_NAME }}
13881388
path: artifacts
@@ -1620,7 +1620,7 @@ jobs:
16201620
16211621
- name: Publish test results
16221622
if: always()
1623-
uses: actions/upload-artifact@v3
1623+
uses: actions/upload-artifact@v4
16241624
with:
16251625
name: test_${{ matrix.testenv.name }}_${{ matrix.subset }}
16261626
if-no-files-found: ignore

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
rm -rf ${GITHUB_WORKSPACE}/*
3636
3737
- name: Download build artifacts
38-
uses: actions/download-artifact@v3
38+
uses: actions/download-artifact@v4
3939
with:
4040
path: artifacts
4141

@@ -63,37 +63,37 @@ jobs:
6363
# into the runner memory at once and this may cause the runner instance to
6464
# run out of memory (see the GitHub issue #520).
6565
- name: Upload release assets (host tools)
66-
uses: softprops/action-gh-release@v1
66+
uses: softprops/action-gh-release@v2
6767
with:
6868
files: |
6969
assets/hosttools_*
7070
7171
- name: Upload release assets (Linux toolchains)
72-
uses: softprops/action-gh-release@v1
72+
uses: softprops/action-gh-release@v2
7373
with:
7474
files: |
7575
assets/toolchain_linux*
7676
7777
- name: Upload release assets (macOS toolchains)
78-
uses: softprops/action-gh-release@v1
78+
uses: softprops/action-gh-release@v2
7979
with:
8080
files: |
8181
assets/toolchain_macos*
8282
8383
- name: Upload release assets (Windows toolchains)
84-
uses: softprops/action-gh-release@v1
84+
uses: softprops/action-gh-release@v2
8585
with:
8686
files: |
8787
assets/toolchain_windows*
8888
8989
- name: Upload release assets (Distribution bundles)
90-
uses: softprops/action-gh-release@v1
90+
uses: softprops/action-gh-release@v2
9191
with:
9292
files: |
9393
assets/${{ env.BUNDLE_PREFIX }}-*
9494
9595
- name: Upload release assets (checksum)
96-
uses: softprops/action-gh-release@v1
96+
uses: softprops/action-gh-release@v2
9797
with:
9898
files: |
9999
md5.sum

0 commit comments

Comments
 (0)