@@ -167,19 +167,61 @@ jobs:
167167 type : application/java-archive
168168 label : Uber-JAR
169169
170- native :
171- name : Native
170+ native-amd64 :
171+ name : Native [amd64]
172172 runs-on : ubuntu-latest
173173 needs :
174174 - build
175175
176- strategy :
177- matrix :
178- include :
179- - arch : amd64
180- ident : x86_64
181- - arch : arm64
182- ident : aarch64
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
183225
184226 steps :
185227 - name : Checkout
@@ -206,13 +248,13 @@ jobs:
206248 run : make native
207249
208250 - name : Rename file
209- run : mv target/submit-runner target/submit-runner-linux-${{ matrix.ident }}
251+ run : mv target/submit-runner target/submit-runner-linux-aarch64
210252
211- - name : Upload artifact [native-${{ matrix.arch }} ]
253+ - name : Upload artifact [native-arm64 ]
212254 uses : actions/upload-artifact@v4
213255 with :
214- name : native-${{ matrix.arch }}
215- path : target/submit-runner-linux-${{ matrix.ident }}
256+ name : native-arm64
257+ path : target/submit-runner-linux-aarch64
216258 if-no-files-found : error
217259 retention-days : 7
218260
@@ -221,15 +263,16 @@ jobs:
221263 if : startsWith(github.ref, 'refs/tags/v')
222264 with :
223265 token : ${{ secrets.GITHUB_TOKEN }}
224- file : target/submit-runner-linux-${{ matrix.ident }}
225- name : submit-${{ env.PROJECT_VERSION }}-native-linux-${{ matrix.ident }}
226- label : Native [${{ matrix.arch }} ]
266+ file : target/submit-runner-linux-aarch64
267+ name : submit-${{ env.PROJECT_VERSION }}-native-linux-aarch64
268+ label : Native [arm64 ]
227269
228270 docker-native :
229271 name : Docker [Native]
230272 runs-on : ubuntu-latest
231273 needs :
232- - native
274+ - native-amd64
275+ - native-arm64
233276
234277 steps :
235278 - name : Checkout
0 commit comments