From d31d2f1c5943e9d5c094d19040906be8d5dc0d8b Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Tue, 4 Feb 2025 10:05:57 +0100 Subject: [PATCH 1/2] cleaned up release.yml --- .github/workflows/release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0cb6c28f245..be94010dfde 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,6 @@ jobs: contents: write checks: write runs-on: ubuntu-latest-64cpu - #runs-on: ubuntu-latest-4cpu steps: - name: Allocate swap space shell: bash From c040f3e8b53ae98360aa3f699028e26a3b885ae8 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Tue, 4 Feb 2025 15:36:55 +0100 Subject: [PATCH 2/2] make the number of runner CPUs a release build parameter, default is 16 --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index be94010dfde..ea66fc272c2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,13 +13,16 @@ on: local_target_platform: description: Build with a local target platform (set to "true" to use local target platform) default: 'false' + runner_cpus: + description: Default is 16, but can be 4, 8, and 64 as well + default: '16' jobs: build: permissions: contents: write checks: write - runs-on: ubuntu-latest-64cpu + runs-on: ubuntu-latest-${{ github.event.inputs.runner_cpus }}cpu steps: - name: Allocate swap space shell: bash @@ -62,7 +65,7 @@ jobs: APP_PARAMETERS: "-Daws.region=eu-west-1 -Dgoogle.maps.authenticationparams=${{ secrets.GOOGLE_MAPS_AUTHENTICATIONPARAMS }} -Daws.s3.test.s3AccessId=${{ secrets.AWS_S3_TEST_S3ACCESSID }} -Daws.s3.test.s3AccessKey=${{ secrets.AWS_S3_TEST_S3ACCESSKEY }}" JAVA8_HOME: ${{env.JAVA_HOME_8_X64}} run: | - ./configuration/buildAndUpdateProduct.sh -x 60 ${{ github.event.inputs.skip_tests == 'true' && '-t' || '' }} ${{ github.event.inputs.local_target_platform == 'true' && '-v' || '' }} build 2>&1 + ./configuration/buildAndUpdateProduct.sh -x ${{ github.event.inputs.runner_cpus }} ${{ github.event.inputs.skip_tests == 'true' && '-t' || '' }} ${{ github.event.inputs.local_target_platform == 'true' && '-v' || '' }} build 2>&1 - name: Upload build log uses: actions/upload-artifact@v4 if: always()