@@ -232,6 +232,9 @@ jobs:
232232 runs-on : ubuntu-latest
233233 environment : release
234234 needs : prereqs
235+ strategy :
236+ matrix :
237+ runtime : [ linux-x64, linux-arm64, linux-arm ]
235238 steps :
236239 - uses : actions/checkout@v4
237240
@@ -241,7 +244,10 @@ jobs:
241244 dotnet-version : 8.0.x
242245
243246 - 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 }}
245251
246252 - name : Run Linux unit tests
247253 run : |
@@ -286,18 +292,17 @@ jobs:
286292 run : |
287293 # Sign Debian package
288294 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
291-
295+ mv out/linux/Packaging.Linux/Release/deb/gcm-${{ matrix.runtime }}.$version.deb .
296+ debsigs --sign=origin --verify --check gcm-${{ matrix.runtime }}.$version.deb
292297 # Generate tarball signature file
293298 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
299+ gpg --batch --yes --armor --output gcm-${{ matrix.runtime }} .$version.tar.gz.asc \
300+ --detach-sig gcm-${{ matrix.runtime }} .$version.tar.gz
296301
297302 - name : Upload artifacts
298303 uses : actions/upload-artifact@v4
299304 with :
300- name : linux -artifacts
305+ name : ${{ matrix.runtime }} -artifacts
301306 path : |
302307 ./*.deb
303308 ./*.asc
@@ -486,9 +491,9 @@ jobs:
486491 matrix :
487492 component :
488493 - os : ubuntu-latest
489- artifact : linux-artifacts
494+ artifact : linux-x64- artifacts
490495 command : git-credential-manager
491- description : linux
496+ description : linux-x64
492497 - os : macos-latest
493498 artifact : macos-osx-x64-artifacts
494499 command : git-credential-manager
@@ -530,15 +535,15 @@ jobs:
530535 Start-Process -Wait -FilePath "$exePath" -ArgumentList "/SILENT /VERYSILENT /NORESTART"
531536 }
532537
533- - name : Install Linux (Debian package)
534- if : contains(matrix.component.description, 'linux')
538+ - name : Install Linux x64 (Debian package)
539+ if : contains(matrix.component.description, 'linux-x64 ')
535540 run : |
536541 debpath=$(find ./*.deb)
537542 sudo apt install $debpath
538543 "${{ matrix.component.command }}" configure
539544
540- - name : Install Linux (tarball)
541- if : contains(matrix.component.description, 'linux')
545+ - name : Install Linux x64 (tarball)
546+ if : contains(matrix.component.description, 'linux-x64 ')
542547 run : |
543548 # Ensure we find only the source tarball, not the symbols
544549 tarpath=$(find . -name '*[[:digit:]].tar.gz')
@@ -618,7 +623,9 @@ jobs:
618623 az keyvault secret show --name "$GPG_PUBLIC_KEY_SECRET_NAME" \
619624 --vault-name "$AZURE_VAULT" --query "value" \
620625 | sed -e 's/^"//' -e 's/"$//' | base64 -d >gcm-public.asc
621- mv gcm-public.asc linux-artifacts
626+ cp gcm-public.asc linux-x64-artifacts/
627+ cp gcm-public.asc linux-arm64-artifacts/
628+ mv gcm-public.asc linux-arm-artifacts
622629
623630 - uses : actions/github-script@v7
624631 with :
@@ -675,7 +682,9 @@ jobs:
675682 uploadDirectoryToRelease('osx-payload-and-symbols'),
676683
677684 // Upload Linux artifacts
678- uploadDirectoryToRelease('linux-artifacts'),
685+ uploadDirectoryToRelease('linux-x64-artifacts'),
686+ uploadDirectoryToRelease('linux-arm64-artifacts'),
687+ uploadDirectoryToRelease('linux-arm-artifacts'),
679688
680689 // Upload .NET tool package
681690 uploadDirectoryToRelease('dotnet-tool-sign'),
0 commit comments