From 57b0f1058ebc73ccb4efbbac739e36f0df4ef9a5 Mon Sep 17 00:00:00 2001 From: Madhava Jay Date: Fri, 29 Sep 2023 09:02:27 +1000 Subject: [PATCH] Clear up space for ubuntu runner and our large image build - Adding to other github ubuntu-latest runners in case they do builds --- .github/workflows/pr-tests-enclave.yml | 7 +++++++ .github/workflows/pr-tests-frontend.yml | 7 +++++++ .github/workflows/pr-tests-stack-arm64.yml | 7 +++++++ .github/workflows/pr-tests-stack.yml | 7 +++++++ 4 files changed, 28 insertions(+) diff --git a/.github/workflows/pr-tests-enclave.yml b/.github/workflows/pr-tests-enclave.yml index 7c6ee71cb6d..16921240a39 100644 --- a/.github/workflows/pr-tests-enclave.yml +++ b/.github/workflows/pr-tests-enclave.yml @@ -31,6 +31,13 @@ jobs: steps: - uses: actions/checkout@v3 + # free 10GB of space + - name: Remove unnecessary files + if: matrix.os == 'ubuntu-latest' + run: | + sudo rm -rf /usr/share/dotnet + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + - name: Check for file changes uses: dorny/paths-filter@v2 id: changes diff --git a/.github/workflows/pr-tests-frontend.yml b/.github/workflows/pr-tests-frontend.yml index a63c4e44f42..aa75efbffe3 100644 --- a/.github/workflows/pr-tests-frontend.yml +++ b/.github/workflows/pr-tests-frontend.yml @@ -108,6 +108,13 @@ jobs: steps: - uses: actions/checkout@v3 + # free 10GB of space + - name: Remove unnecessary files + if: matrix.os == 'ubuntu-latest' + run: | + sudo rm -rf /usr/share/dotnet + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + - name: Check for file changes uses: dorny/paths-filter@v2 id: changes diff --git a/.github/workflows/pr-tests-stack-arm64.yml b/.github/workflows/pr-tests-stack-arm64.yml index 847b63cd413..98406271f38 100644 --- a/.github/workflows/pr-tests-stack-arm64.yml +++ b/.github/workflows/pr-tests-stack-arm64.yml @@ -30,6 +30,13 @@ jobs: - uses: actions/checkout@v3 + # free 10GB of space + - name: Remove unnecessary files + if: matrix.os == 'ubuntu-latest' + run: | + sudo rm -rf /usr/share/dotnet + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + - name: Check for file changes uses: dorny/paths-filter@v2 id: changes diff --git a/.github/workflows/pr-tests-stack.yml b/.github/workflows/pr-tests-stack.yml index 3c87775d1cb..a42a2cec76a 100644 --- a/.github/workflows/pr-tests-stack.yml +++ b/.github/workflows/pr-tests-stack.yml @@ -50,6 +50,13 @@ jobs: - uses: actions/checkout@v3 + # free 10GB of space + - name: Remove unnecessary files + if: matrix.os == 'ubuntu-latest' + run: | + sudo rm -rf /usr/share/dotnet + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + - name: Check for file changes uses: dorny/paths-filter@v2 id: changes