From e1fb4f6e432f21663f99d45ecf70d8badf9ca742 Mon Sep 17 00:00:00 2001 From: "sammy.huang" Date: Tue, 6 Feb 2024 17:04:25 +0800 Subject: [PATCH] enhance: [skip e2e]Maximize build space at the begin (#30562) pr: #30540 Signed-off-by: Sammy Huang --- .github/workflows/code-checker.yaml | 19 +++++++++++++++++++ .github/workflows/main.yaml | 27 +++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/.github/workflows/code-checker.yaml b/.github/workflows/code-checker.yaml index b70cfc931ba33..9d67f0bb3e9c8 100644 --- a/.github/workflows/code-checker.yaml +++ b/.github/workflows/code-checker.yaml @@ -39,6 +39,15 @@ jobs: strategy: fail-fast: false steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + if: ${{ ! startsWith(runner.name, 'self') }} # skip this step if it is self-hosted runner + with: + root-reserve-mb: 20480 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-android: 'true' + remove-haskell: 'true' - name: Checkout uses: actions/checkout@v2 - name: Download Caches @@ -50,12 +59,22 @@ jobs: OS_NAME: 'ubuntu20.04' run: | ./build/builder.sh /bin/bash -c "make check-proto-product && make verifiers" + amazonlinux: name: Code Checker Amazonlinux 2023 # Run in amazonlinux docker runs-on: ubuntu-latest timeout-minutes: 180 steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + if: ${{ ! startsWith(runner.name, 'self') }} # skip this step if it is self-hosted runner + with: + root-reserve-mb: 20480 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-android: 'true' + remove-haskell: 'true' - name: Checkout uses: actions/checkout@v2 - name: Download Caches diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 5a3c7ad3a0237..f032bd10f9ff3 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -100,6 +100,15 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + if: ${{ ! startsWith(runner.name, 'self') }} # skip this step if it is self-hosted runner + with: + root-reserve-mb: 20480 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-android: 'true' + remove-haskell: 'true' - name: Download code uses: actions/download-artifact@v3.0.1 with: @@ -139,6 +148,15 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + if: ${{ ! startsWith(runner.name, 'self') }} # skip this step if it is self-hosted runner + with: + root-reserve-mb: 20480 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-android: 'true' + remove-haskell: 'true' - name: Download code uses: actions/download-artifact@v3.0.1 with: @@ -178,6 +196,15 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + if: ${{ ! startsWith(runner.name, 'self') }} # skip this step if it is self-hosted runner + with: + root-reserve-mb: 20480 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-android: 'true' + remove-haskell: 'true' - name: Download code uses: actions/download-artifact@v3.0.1 with: