@@ -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,18 @@ 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
295+ mv out/linux/Packaging.Linux/Release/deb/gcm-${{ matrix.runtime }} .$version.deb .
296+ debsigs --sign=origin --verify --check gcm-${{ matrix.runtime }} .$version.deb
291297
292298 # Generate tarball signature file
293299 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
296302
297303 - name : Upload artifacts
298304 uses : actions/upload-artifact@v4
299305 with :
300- name : linux -artifacts
306+ name : ${{ matrix.runtime }} -artifacts
301307 path : |
302308 ./*.deb
303309 ./*.asc
@@ -466,9 +472,9 @@ jobs:
466472 matrix :
467473 component :
468474 - os : ubuntu-latest
469- artifact : linux-artifacts
475+ artifact : linux-x64- artifacts
470476 command : git-credential-manager
471- description : linux
477+ description : linux-x64
472478 - os : macos-latest
473479 artifact : macos-osx-x64-artifacts
474480 command : git-credential-manager
@@ -510,15 +516,15 @@ jobs:
510516 Start-Process -Wait -FilePath "$exePath" -ArgumentList "/SILENT /VERYSILENT /NORESTART"
511517 }
512518
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 ')
515521 run : |
516522 debpath=$(find ./*.deb)
517523 sudo apt install $debpath
518524 "${{ matrix.component.command }}" configure
519525
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 ')
522528 run : |
523529 # Ensure we find only the source tarball, not the symbols
524530 tarpath=$(find . -name '*[[:digit:]].tar.gz')
@@ -598,7 +604,9 @@ jobs:
598604 az keyvault secret show --name "$GPG_PUBLIC_KEY_SECRET_NAME" \
599605 --vault-name "$AZURE_VAULT" --query "value" \
600606 | 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
602610
603611 - uses : actions/github-script@v7
604612 with :
@@ -655,7 +663,9 @@ jobs:
655663 uploadDirectoryToRelease('osx-payload-and-symbols'),
656664
657665 // Upload Linux artifacts
658- uploadDirectoryToRelease('linux-artifacts'),
666+ uploadDirectoryToRelease('linux-x64-artifacts'),
667+ uploadDirectoryToRelease('linux-arm64-artifacts'),
668+ uploadDirectoryToRelease('linux-arm-artifacts'),
659669
660670 // Upload .NET tool package
661671 uploadDirectoryToRelease('dotnet-tool-sign'),
0 commit comments