From: Remi Gacogne Date: Thu, 15 May 2025 10:13:09 +0000 (+0200) Subject: build-and-test-all: Build DNSdist on Ubicloud runners when needed X-Git-Tag: dnsdist-2.0.0-alpha2~11^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e08543b3f3dddb4773c87623cdd56cec59bdd62e;p=thirdparty%2Fpdns.git build-and-test-all: Build DNSdist on Ubicloud runners when needed 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. --- diff --git a/.github/workflows/build-and-test-all.yml b/.github/workflows/build-and-test-all.yml index a7b7506314..7c594ec327 100644 --- a/.github/workflows/build-and-test-all.yml +++ b/.github/workflows/build-and-test-all.yml @@ -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: