Skip to content

Commit 38ba123

Browse files
[CI] Upgrade Self-Hosted Runners Actions
Upgraded the self-hosted runners actions to their most recent versions. Specifically, the upload-artifact action will fully deprecate soon and needs to be upgraded. These upgrades require Node 20 to work. The self-hosted runners do not have Node 20 installed by default for their image of Ubuntu (unlike the GitHub-hosted runners), therefore Node20 needs to be installed using another action for the self-hosted jobs.
1 parent f77e0e4 commit 38ba123

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,17 @@ jobs:
7575

7676
# TODO: This runnner is running on a self-hosted CPU. In order to upgrade
7777
# to v4, need to upgrade the machine to support node20.
78-
- uses: actions/checkout@v3
78+
- uses: actions/checkout@v4
7979
with:
8080
submodules: 'true'
8181

82+
# Node 20 is required for recent versions of the upload artifacts action.
83+
# This may not be required once we upgrade to Ubuntu 24.04
84+
- uses: actions/setup-node@v4
85+
with:
86+
node-version: 20
87+
cache: 'npm'
88+
8289
- name: Setup
8390
run: stdbuf -i0 -i0 -e0 ./.github/scripts/hostsetup.sh
8491

@@ -102,7 +109,7 @@ jobs:
102109
if: ${{ !cancelled() }}
103110
# TODO: This runnner is running on a self-hosted CPU. In order to upgrade
104111
# to v4, need to upgrade the machine to support node20.
105-
uses: actions/upload-artifact@v3
112+
uses: actions/upload-artifact@v4
106113
with:
107114
name: ${{matrix.test}}_test_results
108115
path: |

0 commit comments

Comments
 (0)