]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
build-and-test-all: Build DNSdist on Ubicloud runners when needed 15566/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 15 May 2025 10:13:09 +0000 (12:13 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 19 May 2025 09:51:58 +0000 (11:51 +0200)
GH actions provides us with a 16 GB runner on public repositories,
but only 7 GB on private ones. Unfortunately our current workflow
assumes that we can get away with 4 concurrent jobs when building
DNSdist, which is true when we have 16 GB available but not with
7 GB.
So this commit switches to Ubicloud runners (standard 4, 4 vCPU,
16 GB) for repositories defining the `REPOSITORY_USE_UBICLOUD`
variable to 1. These runners are also significantly faster than the
GH actions ones.

.github/workflows/build-and-test-all.yml

index a7b7506314a8b6f20f2ce39c6d951110605df30c..7c594ec327e2bb39d894aca78e1cfd83edea16d0 100644 (file)
@@ -220,7 +220,7 @@ jobs:
   build-dnsdist:
     name: build dnsdist
     if: ${{ !github.event.schedule || vars.SCHEDULED_JOBS_BUILD_AND_TEST_ALL }}
-    runs-on: ubuntu-24.04
+    runs-on: ${{ ( vars.REPOSITORY_USE_UBICLOUD == '1' ) && 'ubicloud-standard-4-ubuntu-2404' || 'ubuntu-24.04' }}
     needs: get-runner-container-image
     strategy:
       matrix: