wipe more directories to free up space

This commit is contained in:
Jonathan Kelley 2024-02-05 12:57:48 -08:00
parent 52e14e8ece
commit 472de4198d
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE
2 changed files with 15 additions and 7 deletions

12
.github/free_space.sh vendored Normal file
View file

@ -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

View file

@ -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 }}"