From 25eb013504c788320f07d275fbdc7c31f1d3fa8d Mon Sep 17 00:00:00 2001 From: Quentin Kaiser Date: Fri, 2 Dec 2022 17:27:05 +0100 Subject: [PATCH] Build Debian package for AARCH64 and ARM32 in Github CI/CD. --- .github/workflows/build.yml | 34 +++++++++++++++++++++++++++++--- .github/workflows/release.yml | 37 +++++++++++++++++++++++++++++------ 2 files changed, 62 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e686b4..bacadf4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,14 +17,42 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - build: + build_amd64: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Build Debian package - uses: dawidd6/action-debian-package@v1.4.0 + - name: Build Debian package (AMD64) + uses: dawidd6/action-debian-package@v1.4.4 with: os_distribution: bullseye + cpu_architecture: amd64 + - name: Upload DEB artifacts + uses: actions/upload-artifact@v2 + with: + path: ${{ github.workspace }}/*.deb + build_arm64: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build Debian package (AARCH64) + uses: dawidd6/action-debian-package@v1.4.4 + with: + os_distribution: bullseye + cpu_architecture: arm64 + - name: Upload DEB artifacts + uses: actions/upload-artifact@v2 + with: + path: ${{ github.workspace }}/*.deb + if-no-files-found: error + build_arm: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build Debian package (ARM32) + uses: dawidd6/action-debian-package@v1.4.4 + with: + os_distribution: bullseye + cpu_architecture: arm - name: Upload DEB artifacts uses: actions/upload-artifact@v2 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e23dc86..a5e4073 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,17 +6,42 @@ on: - "sasquatch-v*" jobs: - build: + build_amd64: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Build Debian package - uses: dawidd6/action-debian-package@v1.4.0 + - uses: actions/checkout@v2 + - name: Build Debian package (AMD64) + uses: dawidd6/action-debian-package@v1.4.4 with: os_distribution: bullseye + cpu_architecture: amd64 + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: ${{ github.workspace }}/*.deb + build_arm64: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build Debian package (AARCH64) + uses: dawidd6/action-debian-package@v1.4.4 + with: + os_distribution: bullseye + cpu_architecture: arm64 + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: ${{ github.workspace }}/*.deb + build_arm: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build Debian package (ARM32) + uses: dawidd6/action-debian-package@v1.4.4 + with: + os_distribution: bullseye + cpu_architecture: arm - name: Release uses: softprops/action-gh-release@v1 with: files: ${{ github.workspace }}/*.deb -