Skip to content

Commit 7ba8636

Browse files
committed
Reduce CI disk usage.
1 parent 4467668 commit 7ba8636

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,23 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v4
2222

23+
- name: Free Disk Space (Ubuntu)
24+
if: runner.os == 'Linux'
25+
uses: jlumbroso/free-disk-space@main
26+
with:
27+
# this might remove tools that are actually needed,
28+
# if set to "true" but frees about 6 GB
29+
tool-cache: false
30+
31+
# all of these default to true, but feel free to set to
32+
# "false" if necessary for your workflow
33+
android: true
34+
dotnet: true
35+
haskell: true
36+
large-packages: true
37+
docker-images: true
38+
swap-storage: true
39+
2340
- name: Install Rust
2441
uses: dtolnay/rust-toolchain@stable
2542
with:
@@ -76,6 +93,9 @@ jobs:
7693
- name: Run tests (no-std + tracing, no SSO)
7794
run: cargo test --verbose --no-default-features --features tracing -- --nocapture
7895

96+
- name: Clean build artifacts before SSO tests
97+
run: cargo clean
98+
7999
- name: Run tests with SSO features
80100
run: |
81101
cargo test --verbose --features std,sso-min-32bit -- --nocapture
@@ -98,6 +118,17 @@ jobs:
98118
steps:
99119
- uses: actions/checkout@v4
100120

121+
- name: Free Disk Space
122+
uses: jlumbroso/free-disk-space@main
123+
with:
124+
tool-cache: false
125+
android: true
126+
dotnet: true
127+
haskell: true
128+
large-packages: true
129+
docker-images: true
130+
swap-storage: true
131+
101132
- name: Install Rust
102133
uses: dtolnay/rust-toolchain@stable
103134

0 commit comments

Comments
 (0)