diff --git a/.github/actions/rm/action.yml b/.github/actions/rm/action.yml new file mode 100644 index 000000000..2db654b62 --- /dev/null +++ b/.github/actions/rm/action.yml @@ -0,0 +1,17 @@ +# https://github.com/marketplace/actions/free-disk-space-ubuntu +name: 'Free disk space' +description: 'Frees up disk space on Github Ubuntu runners' +runs: + using: composite + steps: + uses: jlumbroso/free-disk-space@main + with: + # if we still don't have enough space, we can try setting this to true + tool-cache: false + + android: true + dotnet: true + haskell: true + large-packages: true + docker-images: true + swap-storage: true diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 5224f9abd..300c2854a 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -26,10 +26,10 @@ jobs: name: Basic Checks env: CARGO_INCREMENTAL: 0 - runs-on: ubuntu-latest steps: + - uses: ./.github/actions/rm - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable @@ -73,6 +73,7 @@ jobs: env: RUSTFLAGS: -C target-cpu=native steps: + - uses: ./.github/actions/rm - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable @@ -106,6 +107,7 @@ jobs: runs-on: ubuntu-latest steps: + - uses: ./.github/actions/rm - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable