@@ -137,6 +137,12 @@ jobs:
137
137
os_family : windows
138
138
arch : amd64
139
139
runs-on : ${{ matrix.runner }}
140
+ env :
141
+ # This is required to allow continuing usage of Node 16 for actions,
142
+ # as Node 20 won't run on the builder we use for linux builds
143
+ # (Node 20 require glibc 2.28+, but ubuntu-1804 has glibc 2.27).
144
+ # https://github.blog/changelog/2024-05-17-updated-dates-for-actions-runner-using-node20-instead-of-node16-by-default/
145
+ ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION : true
140
146
steps :
141
147
- name : Checkout repo
142
148
uses : actions/checkout@v4
@@ -149,21 +155,24 @@ jobs:
149
155
run : git tag "$INPUT_TAG"
150
156
151
157
- name : Set up Java
152
- uses : actions/setup-java@v4
158
+ # FIXME: v4+ requires Node 20
159
+ uses : actions/setup-java@v3
153
160
with :
154
161
java-version : " 11"
155
162
distribution : " temurin"
156
163
157
164
- name : Set up Gradle
158
- uses : gradle/actions/setup-gradle@v3
159
-
165
+ # FIXME: v3+ requires Node 20
166
+ uses : gradle/gradle-build-action@v2
167
+
160
168
- name : Build native test server
161
169
run : ./gradlew :temporal-test-server:build
162
170
163
171
# path ends in a wildcard because on windows the file ends in '.exe'
164
172
# path excludes *.txt because native-image also writes a build manifest txt file
165
173
- name : Upload executable to workflow
166
- uses : actions/upload-artifact@v4
174
+ # FIXME: v4+ requires Node 20
175
+ uses : actions/upload-artifact@v3
167
176
with :
168
177
name : ${{ matrix.os_family }}_${{ matrix.arch }}
169
178
path : |
@@ -182,7 +191,8 @@ jobs:
182
191
183
192
# when no artifact is specified, all artifacts are downloaded and expanded into CWD
184
193
- name : Fetch executables
185
- uses : actions/download-artifact@v4
194
+ # Need v3 here to stay compatible with the build_native_images job.
195
+ uses : actions/download-artifact@v3-node20
186
196
187
197
# example: linux_amd64/ -> temporal-test-server_1.2.3_linux_amd64
188
198
# the name of the directory created becomes the basename of the archive (*.tar.gz or *.zip) and
0 commit comments