From 5cb906c586390465f25346a01d52bdc5916fb45f Mon Sep 17 00:00:00 2001 From: Dave Cuza Date: Fri, 22 Nov 2024 23:05:05 -0500 Subject: [PATCH] Enhance GitHub Actions workflow to support multiple architectures for Debian and Ubuntu packages --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a76aa2d..beb079d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,8 +14,10 @@ jobs: strategy: matrix: container: ['debian:11', 'debian:12', 'ubuntu:20.04', 'ubuntu:22.04', 'ubuntu:24.04'] + arch: ['amd64', 'arm/v7', 'arm64/v8'] container: image: ${{ matrix.container }} + options: --platform linux/${{ matrix.arch }} steps: - name: Checkout code uses: actions/checkout@v4 @@ -26,7 +28,7 @@ jobs: - name: Upload packages uses: actions/upload-artifact@v4 with: - name: packages + name: debian-package-${{ matrix.container }}-${{ matrix.arch }} path: ./pkgs/*.deb release: @@ -37,7 +39,7 @@ jobs: - name: Download packages uses: actions/download-artifact@v4 with: - name: packages + merge-multiple: true path: ./pkgs - name: Create release uses: ncipollo/release-action@v1