@@ -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,18 @@ 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
+ mv out/linux/Packaging.Linux/Release/deb/gcm-${{ matrix.runtime }} .$version.deb .
296
+ debsigs --sign=origin --verify --check gcm-${{ matrix.runtime }} .$version.deb
291
297
292
298
# Generate tarball signature file
293
299
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
300
+ gpg --batch --yes --armor --output gcm-${{ matrix.runtime }} .$version.tar.gz.asc \
301
+ --detach-sig gcm-${{ matrix.runtime }} .$version.tar.gz
296
302
297
303
- name : Upload artifacts
298
304
uses : actions/upload-artifact@v4
299
305
with :
300
- name : linux -artifacts
306
+ name : ${{ matrix.runtime }} -artifacts
301
307
path : |
302
308
./*.deb
303
309
./*.asc
@@ -466,9 +472,9 @@ jobs:
466
472
matrix :
467
473
component :
468
474
- os : ubuntu-latest
469
- artifact : linux-artifacts
475
+ artifact : linux-x64- artifacts
470
476
command : git-credential-manager
471
- description : linux
477
+ description : linux-x64
472
478
- os : macos-latest
473
479
artifact : macos-osx-x64-artifacts
474
480
command : git-credential-manager
@@ -510,15 +516,15 @@ jobs:
510
516
Start-Process -Wait -FilePath "$exePath" -ArgumentList "/SILENT /VERYSILENT /NORESTART"
511
517
}
512
518
513
- - name : Install Linux (Debian package)
514
- if : contains(matrix.component.description, 'linux')
519
+ - name : Install Linux x64 (Debian package)
520
+ if : contains(matrix.component.description, 'linux-x64 ')
515
521
run : |
516
522
debpath=$(find ./*.deb)
517
523
sudo apt install $debpath
518
524
"${{ matrix.component.command }}" configure
519
525
520
- - name : Install Linux (tarball)
521
- if : contains(matrix.component.description, 'linux')
526
+ - name : Install Linux x64 (tarball)
527
+ if : contains(matrix.component.description, 'linux-x64 ')
522
528
run : |
523
529
# Ensure we find only the source tarball, not the symbols
524
530
tarpath=$(find . -name '*[[:digit:]].tar.gz')
@@ -598,7 +604,9 @@ jobs:
598
604
az keyvault secret show --name "$GPG_PUBLIC_KEY_SECRET_NAME" \
599
605
--vault-name "$AZURE_VAULT" --query "value" \
600
606
| sed -e 's/^"//' -e 's/"$//' | base64 -d >gcm-public.asc
601
- mv gcm-public.asc linux-artifacts
607
+ cp gcm-public.asc linux-x64-artifacts/
608
+ cp gcm-public.asc linux-arm64-artifacts/
609
+ mv gcm-public.asc linux-arm-artifacts
602
610
603
611
- uses : actions/github-script@v7
604
612
with :
@@ -655,7 +663,9 @@ jobs:
655
663
uploadDirectoryToRelease('osx-payload-and-symbols'),
656
664
657
665
// Upload Linux artifacts
658
- uploadDirectoryToRelease('linux-artifacts'),
666
+ uploadDirectoryToRelease('linux-x64-artifacts'),
667
+ uploadDirectoryToRelease('linux-arm64-artifacts'),
668
+ uploadDirectoryToRelease('linux-arm-artifacts'),
659
669
660
670
// Upload .NET tool package
661
671
uploadDirectoryToRelease('dotnet-tool-sign'),
0 commit comments