@@ -167,61 +167,21 @@ jobs:
167167 type : application/java-archive
168168 label : Uber-JAR
169169
170- native-amd64 :
171- name : Native [amd64]
172- runs-on : ubuntu-latest
170+ native :
171+ name : Native
172+ runs-on : ${{ matrix.os }}
173173 needs :
174174 - build
175175
176- steps :
177- - name : Checkout
178- uses : actions/checkout@v4
179-
180- - name : Prepare version labels
181- uses : k15g/action-version-labels@edge
182- with :
183- prefix : project
184-
185- - name : Set up QEMU
186- uses : docker/setup-qemu-action@v3
187-
188- - name : Set up Docker Buildx
189- uses : docker/setup-buildx-action@v3
190-
191- - name : Download artifact [target]
192- uses : actions/download-artifact@v4
193- with :
194- name : target
195- path : target
196-
197- - name : Build native
198- run : make native
199-
200- - name : Rename file
201- run : mv target/submit-runner target/submit-runner-linux-x86_64
202-
203- - name : Upload artifact [native-amd64]
204- uses : actions/upload-artifact@v4
205- with :
206- name : native-amd64
207- path : target/submit-runner-linux-x86_64
208- if-no-files-found : error
209- retention-days : 7
210-
211- - name : Upload asset
212- uses : k15g/action-github-asset-upload@edge
213- if : startsWith(github.ref, 'refs/tags/v')
214- with :
215- token : ${{ secrets.GITHUB_TOKEN }}
216- file : target/submit-runner-linux-x86_64
217- name : submit-${{ env.PROJECT_VERSION }}-native-linux-x86_64
218- label : Native [amd64]
219-
220- native-arm64 :
221- name : Native [arm64]
222- runs-on : ubuntu-24.04-arm
223- needs :
224- - build
176+ matrix :
177+ strategy :
178+ include :
179+ - arch : amd64
180+ os : ubuntu-latest
181+ ident : x86_64
182+ - arch : arm64
183+ os : ubuntu-24.04-arm
184+ ident : aarch64
225185
226186 steps :
227187 - name : Checkout
@@ -248,13 +208,13 @@ jobs:
248208 run : make native
249209
250210 - name : Rename file
251- run : mv target/submit-runner target/submit-runner-linux-aarch64
211+ run : mv target/submit-runner target/submit-runner-linux-${{ matrix.ident }}
252212
253- - name : Upload artifact [native-arm64 ]
213+ - name : Upload artifact [native-${{ matrix.arch }} ]
254214 uses : actions/upload-artifact@v4
255215 with :
256- name : native-arm64
257- path : target/submit-runner-linux-aarch64
216+ name : native-${{ matrix.arch }}
217+ path : target/submit-runner-linux-${{ matrix.ident }}
258218 if-no-files-found : error
259219 retention-days : 7
260220
@@ -263,16 +223,15 @@ jobs:
263223 if : startsWith(github.ref, 'refs/tags/v')
264224 with :
265225 token : ${{ secrets.GITHUB_TOKEN }}
266- file : target/submit-runner-linux-aarch64
267- name : submit-${{ env.PROJECT_VERSION }}-native-linux-aarch64
268- label : Native [arm64 ]
226+ file : target/submit-runner-linux-${{ matrix.ident }}
227+ name : submit-${{ env.PROJECT_VERSION }}-native-linux-${{ matrix.ident }}
228+ label : Native [${{ matrix.arch }} ]
269229
270230 docker-native :
271231 name : Docker [Native]
272232 runs-on : ubuntu-latest
273233 needs :
274- - native-amd64
275- - native-arm64
234+ - native
276235
277236 steps :
278237 - name : Checkout
0 commit comments