]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
gh actions: builder.yml - add arm64 builds running on ubicloud
authorromeroalx <alexis.romero@open-xchange.com>
Tue, 30 Apr 2024 05:59:14 +0000 (07:59 +0200)
committerromeroalx <alexis.romero@open-xchange.com>
Tue, 4 Jun 2024 08:09:26 +0000 (10:09 +0200)
.github/workflows/builder.yml

index 43cfc9e39b256c59ecb951f13ec945f94fec7ebd..c581fc19c60f9e370592f570419ccd5e8166c432 100644 (file)
@@ -19,7 +19,7 @@ jobs:
   build:
     name: build.sh
     if: ${{ vars.SCHEDULED_JOBS_BUILDER }}
-    runs-on: ubuntu-22.04
+    runs-on: ${{ matrix.runner-os }}
     strategy:
       matrix:
         product: ['authoritative', 'recursor', 'dnsdist']
@@ -34,6 +34,12 @@ jobs:
           - debian-bookworm
           - debian-trixie
           - amazon-2023
+        runner-os:
+          - ubuntu-22.04
+          - ubicloud-standard-2-arm
+        exclude:
+          - os: centos-7
+            runner-os: ubicloud-standard-2-arm
       fail-fast: false
     steps:
       - uses: actions/checkout@v4
@@ -47,9 +53,13 @@ jobs:
         run: |
           echo "version=$(readlink builder/tmp/latest)" >> $GITHUB_OUTPUT
         id: getversion
+      - name: Get target architecture
+        run: |
+          echo "target-arch=$(uname -m)" >> $GITHUB_OUTPUT
+        id: getarch
       - name: Upload packages
         uses: actions/upload-artifact@v4
         with:
-          name: ${{ matrix.product }}-${{ matrix.os }}-${{ steps.getversion.outputs.version }}
+          name: ${{ matrix.product }}-${{ matrix.os }}-${{ steps.getversion.outputs.version }}-${{ steps.getarch.outputs.target-arch }}
           path: built_pkgs/
           retention-days: 7