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