From 1bbceac4e1be139124a3c9c8ef12f278cd91de4e Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Mon, 5 Feb 2024 13:24:21 -0800 Subject: [PATCH] use better disk clearer --- .github/workflows/main.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5fff0bd22..3017ffb60 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -69,7 +69,8 @@ jobs: - uses: davidB/rust-cargo-make@v1 - uses: browser-actions/setup-firefox@latest - uses: jetli/wasm-pack-action@v0.4.0 - - run: bash .github/free_space.sh + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@v1.3.1 - run: cargo make tests fmt: @@ -155,7 +156,8 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 16 - - run: bash .github/free_space.sh + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@v1.3.1 - name: Install Rust uses: dtolnay/rust-toolchain@master with: @@ -245,7 +247,11 @@ jobs: if: ${{ matrix.platform.cross == true }} uses: taiki-e/install-action@cross - - run: bash .github/free_space.sh + + - name: Free Disk Space (Ubuntu) + if: ${{ matrix.platform.os == 'ubuntu-latest' }} + uses: jlumbroso/free-disk-space@v1.3.1 + - uses: Swatinem/rust-cache@v2 with: key: "${{ matrix.platform.target }}"