Skip to content

Commit

Permalink
[FIX] Free space for Ubuntu runner
Browse files Browse the repository at this point in the history
  • Loading branch information
makeecat authored Jan 11, 2025
1 parent 5caa3ce commit 0069563
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@ env:
CARGO_TERM_COLOR: always

jobs:
free-disk-space:
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
build:
runs-on: ${{ matrix.os }}

Expand All @@ -18,6 +35,21 @@ jobs:
os: [ ubuntu-latest, macos-latest, windows-latest ] # macos tends to break more often.
continue-on-error: false
steps:
- name: Free Disk Space (Ubuntu)
if: runner.os == 'Linux'
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
- uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rs/toolchain@v1
Expand Down

0 comments on commit 0069563

Please sign in to comment.