From 472de4198df1c2d4250073741d9e3dc731d70ce3 Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Mon, 5 Feb 2024 12:57:48 -0800 Subject: [PATCH] wipe more directories to free up space --- .github/free_space.sh | 12 ++++++++++++ .github/workflows/main.yml | 10 +++------- 2 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 .github/free_space.sh diff --git a/.github/free_space.sh b/.github/free_space.sh new file mode 100644 index 000000000..70bef384d --- /dev/null +++ b/.github/free_space.sh @@ -0,0 +1,12 @@ +df -h +sudo rm -rf ${GITHUB_WORKSPACE}/.git +sudo rm -rf "$AGENT_TOOLSDIRECTORY" +sudo rm -rf /usr/share/dotnet +sudo apt-get remove -y '^ghc-8.*' +sudo apt-get remove -y '^dotnet-.*' +sudo apt-get remove -y '^llvm-.*' +sudo apt-get remove -y 'php.*' +sudo apt-get remove -y azure-cli google-cloud-sdk hhvm google-chrome-stable firefox powershell mono-devel +sudo apt-get autoremove -y +sudo apt-get clean +df -h diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2e83de95a..eeecfbb16 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -69,12 +69,7 @@ jobs: - uses: davidB/rust-cargo-make@v1 - uses: browser-actions/setup-firefox@latest - uses: jetli/wasm-pack-action@v0.4.0 - - run: sudo rm -rf /usr/share/dotnet - - run: sudo rm -rf "$AGENT_TOOLSDIRECTORY" - - run: | - df -h - sudo rm -rf ${GITHUB_WORKSPACE}/.git - df -h + - run: bash ./github/free_space.sh - run: cargo make tests fmt: @@ -160,6 +155,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 16 + - run: bash ./github/free_space.sh - name: Install Rust uses: dtolnay/rust-toolchain@master with: @@ -249,7 +245,7 @@ jobs: if: ${{ matrix.platform.cross == true }} uses: taiki-e/install-action@cross - + - run: bash ./github/free_space.sh - uses: Swatinem/rust-cache@v2 with: key: "${{ matrix.platform.target }}"