@@ -232,6 +232,9 @@ jobs:
232
232
runs-on : ubuntu-latest
233
233
environment : release
234
234
needs : prereqs
235
+ strategy :
236
+ matrix :
237
+ runtime : [ linux-x64, linux-arm64, linux-arm ]
235
238
steps :
236
239
- uses : actions/checkout@v4
237
240
@@ -241,7 +244,10 @@ jobs:
241
244
dotnet-version : 8.0.x
242
245
243
246
- name : Build
244
- run : dotnet build --configuration=LinuxRelease
247
+ run : |
248
+ dotnet build src/linux/Packaging.Linux/*.csproj \
249
+ --configuration=LinuxRelease --no-self-contained \
250
+ --runtime=${{ matrix.runtime }}
245
251
246
252
- name : Run Linux unit tests
247
253
run : |
@@ -286,18 +292,23 @@ jobs:
286
292
run : |
287
293
# Sign Debian package
288
294
version=${{ needs.prereqs.outputs.version }}
289
- mv out/linux/Packaging.Linux/Release/deb/gcm-linux_amd64.$version.deb .
290
- debsigs --sign=origin --verify --check gcm-linux_amd64.$version.deb
295
+ case ${{ matrix.runtime }} in
296
+ *x64) arch=amd64 ;;
297
+ *arm64) arch=arm64 ;;
298
+ *arm) arch=armhf ;;
299
+ esac
300
+ mv out/linux/Packaging.Linux/Release/deb/gcm-linux_$arch.$version.deb .
301
+ debsigs --sign=origin --verify --check gcm-linux_$arch.$version.deb
291
302
292
303
# Generate tarball signature file
293
304
mv -v out/linux/Packaging.Linux/Release/tar/* .
294
- gpg --batch --yes --armor --output gcm-linux_amd64 .$version.tar.gz.asc \
295
- --detach-sig gcm-linux_amd64 .$version.tar.gz
305
+ gpg --batch --yes --armor --output gcm-linux_$arch .$version.tar.gz.asc \
306
+ --detach-sig gcm-linux_$arch .$version.tar.gz
296
307
297
308
- name : Upload artifacts
298
309
uses : actions/upload-artifact@v4
299
310
with :
300
- name : linux -artifacts
311
+ name : ${{ matrix.runtime }} -artifacts
301
312
path : |
302
313
./*.deb
303
314
./*.asc
@@ -486,9 +497,9 @@ jobs:
486
497
matrix :
487
498
component :
488
499
- os : ubuntu-latest
489
- artifact : linux-artifacts
500
+ artifact : linux-x64- artifacts
490
501
command : git-credential-manager
491
- description : linux
502
+ description : linux-x64
492
503
- os : macos-latest
493
504
artifact : macos-osx-x64-artifacts
494
505
command : git-credential-manager
@@ -531,14 +542,14 @@ jobs:
531
542
}
532
543
533
544
- name : Install Linux (Debian package)
534
- if : contains(matrix.component.description, 'linux')
545
+ if : contains(matrix.component.description, 'linux-x64 ')
535
546
run : |
536
547
debpath=$(find ./*.deb)
537
548
sudo apt install $debpath
538
549
"${{ matrix.component.command }}" configure
539
550
540
551
- name : Install Linux (tarball)
541
- if : contains(matrix.component.description, 'linux')
552
+ if : contains(matrix.component.description, 'linux-x64 ')
542
553
run : |
543
554
# Ensure we find only the source tarball, not the symbols
544
555
tarpath=$(find . -name '*[[:digit:]].tar.gz')
@@ -618,7 +629,9 @@ jobs:
618
629
az keyvault secret show --name "$GPG_PUBLIC_KEY_SECRET_NAME" \
619
630
--vault-name "$AZURE_VAULT" --query "value" \
620
631
| sed -e 's/^"//' -e 's/"$//' | base64 -d >gcm-public.asc
621
- mv gcm-public.asc linux-artifacts
632
+ cp gcm-public.asc linux-x64-artifacts/
633
+ cp gcm-public.asc linux-arm64-artifacts/
634
+ mv gcm-public.asc linux-arm-artifacts
622
635
623
636
- uses : actions/github-script@v7
624
637
with :
@@ -675,7 +688,9 @@ jobs:
675
688
uploadDirectoryToRelease('osx-payload-and-symbols'),
676
689
677
690
// Upload Linux artifacts
678
- uploadDirectoryToRelease('linux-artifacts'),
691
+ uploadDirectoryToRelease('linux-x64-artifacts'),
692
+ uploadDirectoryToRelease('linux-arm64-artifacts'),
693
+ uploadDirectoryToRelease('linux-arm-artifacts'),
679
694
680
695
// Upload .NET tool package
681
696
uploadDirectoryToRelease('dotnet-tool-sign'),
0 commit comments