From 55166f1eac4a4ac285c37092018c0722e0461439 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Fri, 29 Sep 2023 11:58:31 -0400 Subject: [PATCH] ci: use GitHub Action to free up disk space Community effort is more maintainable. --- .github/workflows/examples.yml | 179 +++++--------------- .github/workflows/javascript-typescript.yml | 17 +- .github/workflows/toolchains.yml | 31 +--- .github/workflows/wasi.yml | 16 +- 4 files changed, 48 insertions(+), 195 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index b64a5f617..b11870d57 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -13,20 +13,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: 'Free up disk space' - run: | - # Workaround for https://github.com/actions/virtual-environments/issues/709 - df -h - sudo apt-get update - sudo apt-get remove -y '^dotnet-.*' - sudo apt-get remove -y '^llvm-.*' - sudo apt-get remove -y 'php.*' - sudo apt-get autoremove -y - sudo apt-get clean - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf /usr/share/dotnet/ - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - df -h + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + large-packages: false - uses: actions/setup-node@v3 with: @@ -51,20 +41,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: 'Free up disk space' - run: | - # Workaround for https://github.com/actions/virtual-environments/issues/709 - df -h - sudo apt-get update - sudo apt-get remove -y '^dotnet-.*' - sudo apt-get remove -y '^llvm-.*' - sudo apt-get remove -y 'php.*' - sudo apt-get autoremove -y - sudo apt-get clean - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf /usr/share/dotnet/ - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - df -h + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + large-packages: false - uses: actions/setup-node@v3 with: @@ -125,20 +105,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: 'Free up disk space' - run: | - # Workaround for https://github.com/actions/virtual-environments/issues/709 - df -h - sudo apt-get update - sudo apt-get remove -y '^dotnet-.*' - sudo apt-get remove -y '^llvm-.*' - sudo apt-get remove -y 'php.*' - sudo apt-get autoremove -y - sudo apt-get clean - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf /usr/share/dotnet/ - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - df -h + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + large-packages: false - uses: actions/setup-node@v3 with: @@ -169,19 +139,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: 'Free up disk space' - run: | - # Workaround for https://github.com/actions/virtual-environments/issues/709 - df -h - sudo apt-get remove -y '^dotnet-.*' - sudo apt-get remove -y '^llvm-.*' - sudo apt-get remove -y 'php.*' - sudo apt-get autoremove -y - sudo apt-get clean - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf /usr/share/dotnet/ - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - df -h + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + large-packages: false - uses: actions/setup-node@v3 with: @@ -206,20 +167,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: 'Free up disk space' - run: | - # Workaround for https://github.com/actions/virtual-environments/issues/709 - df -h - sudo apt-get update - sudo apt-get remove -y '^dotnet-.*' - sudo apt-get remove -y '^llvm-.*' - sudo apt-get remove -y 'php.*' - sudo apt-get autoremove -y - sudo apt-get clean - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf /usr/share/dotnet/ - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - df -h + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + large-packages: false - name: Test uses: cypress-io/github-action@v6 @@ -235,20 +186,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: 'Free up disk space' - run: | - # Workaround for https://github.com/actions/virtual-environments/issues/709 - df -h - sudo apt-get update - sudo apt-get remove -y '^dotnet-.*' - sudo apt-get remove -y '^llvm-.*' - sudo apt-get remove -y 'php.*' - sudo apt-get autoremove -y - sudo apt-get clean - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf /usr/share/dotnet/ - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - df -h + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + large-packages: false - name: Test Webpack Example on Chrome uses: cypress-io/github-action@v6 @@ -271,20 +212,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: 'Free up disk space' - run: | - # Workaround for https://github.com/actions/virtual-environments/issues/709 - df -h - sudo apt-get update - sudo apt-get remove -y '^dotnet-.*' - sudo apt-get remove -y '^llvm-.*' - sudo apt-get remove -y 'php.*' - sudo apt-get autoremove -y - sudo apt-get clean - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf /usr/share/dotnet/ - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - df -h + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + large-packages: false - name: Test Vite Example on Chrome uses: cypress-io/github-action@v6 @@ -310,20 +241,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: 'Free up disk space' - run: | - # Workaround for https://github.com/actions/virtual-environments/issues/709 - df -h - sudo apt-get update - sudo apt-get remove -y '^dotnet-.*' - sudo apt-get remove -y '^llvm-.*' - sudo apt-get remove -y 'php.*' - sudo apt-get autoremove -y - sudo apt-get clean - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf /usr/share/dotnet/ - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - df -h + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + large-packages: false - uses: actions/setup-node@v3 with: @@ -350,20 +271,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: 'Free up disk space' - run: | - # Workaround for https://github.com/actions/virtual-environments/issues/709 - df -h - sudo apt-get update - sudo apt-get remove -y '^dotnet-.*' - sudo apt-get remove -y '^llvm-.*' - sudo apt-get remove -y 'php.*' - sudo apt-get autoremove -y - sudo apt-get clean - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf /usr/share/dotnet/ - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - df -h + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + large-packages: false - uses: actions/setup-node@v3 with: @@ -391,20 +302,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: 'Free up disk space' - run: | - # Workaround for https://github.com/actions/virtual-environments/issues/709 - df -h - sudo apt-get update - sudo apt-get remove -y '^dotnet-.*' - sudo apt-get remove -y '^llvm-.*' - sudo apt-get remove -y 'php.*' - sudo apt-get autoremove -y - sudo apt-get clean - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf /usr/share/dotnet/ - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - df -h + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + large-packages: false - uses: actions/setup-node@v3 with: diff --git a/.github/workflows/javascript-typescript.yml b/.github/workflows/javascript-typescript.yml index 48b0008ab..0cd934f7a 100644 --- a/.github/workflows/javascript-typescript.yml +++ b/.github/workflows/javascript-typescript.yml @@ -9,21 +9,8 @@ jobs: steps: - uses: actions/checkout@v3 - - name: 'Free up disk space' - run: | - # Workaround for https://github.com/actions/virtual-environments/issues/709 - df -h - sudo apt-get update - sudo apt-get remove -y '^aspnet-.*' - sudo apt-get remove -y '^dotnet-.*' - sudo apt-get remove -y '^llvm-.*' - sudo apt-get remove -y 'php.*' - sudo apt-get autoremove -y - sudo apt-get clean - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf /usr/share/dotnet/ - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - df -h + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main - name: Pull latest Docker images run: | diff --git a/.github/workflows/toolchains.yml b/.github/workflows/toolchains.yml index 90ce987a8..843149811 100644 --- a/.github/workflows/toolchains.yml +++ b/.github/workflows/toolchains.yml @@ -10,20 +10,8 @@ jobs: steps: - uses: actions/checkout@v3 - - name: 'Free up disk space' - run: | - # Workaround for https://github.com/actions/virtual-environments/issues/709 - df -h - sudo apt-get update - sudo apt-get remove -y '^dotnet-.*' - sudo apt-get remove -y '^llvm-.*' - sudo apt-get remove -y 'php.*' - sudo apt-get autoremove -y - sudo apt-get clean - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf /usr/share/dotnet/ - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - df -h + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main - name: Pull latest Docker images run: | @@ -64,19 +52,8 @@ jobs: steps: - uses: actions/checkout@v2 - - name: 'Free up disk space' - run: | - # Workaround for https://github.com/actions/virtual-environments/issues/709 - df -h - sudo apt-get remove -y '^dotnet-.*' - sudo apt-get remove -y '^llvm-.*' - sudo apt-get remove -y 'php.*' - sudo apt-get autoremove -y - sudo apt-get clean - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf /usr/share/dotnet/ - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - df -h + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main - name: Pull latest Docker images run: | diff --git a/.github/workflows/wasi.yml b/.github/workflows/wasi.yml index 3d34dadf1..59dde52ac 100644 --- a/.github/workflows/wasi.yml +++ b/.github/workflows/wasi.yml @@ -9,20 +9,8 @@ jobs: steps: - uses: actions/checkout@v3 - - name: 'Free up disk space' - run: | - # Workaround for https://github.com/actions/virtual-environments/issues/709 - df -h - sudo apt-get update - sudo apt-get remove -y '^dotnet-.*' - sudo apt-get remove -y '^llvm-.*' - sudo apt-get remove -y 'php.*' - sudo apt-get autoremove -y - sudo apt-get clean - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf /usr/share/dotnet/ - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - df -h + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main - name: Pull latest Docker images run: |