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: