Skip to content

Commit a749693

Browse files
committed
Free disk space in the CI since the m68k rustc build runs out of disk space
1 parent 2b47c6f commit a749693

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

.github/workflows/nightly_rustc.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,17 @@ jobs:
3636
path: "rust"
3737
fetch-depth: 10
3838

39-
- run: |
40-
echo $HOME
41-
echo "*****"
42-
ls
43-
echo "*****"
44-
ls ..
45-
echo "*****"
46-
ls rust
47-
echo "*****"
39+
- name: Free Disk Space
40+
uses: endersonmenezes/free-disk-space@v3
41+
with:
42+
remove_android: true
43+
remove_dotnet: true
44+
remove_haskell: true
45+
remove_tool_cache: true
46+
remove_swap: true
47+
remove_packages: "azure-cli google-cloud-cli microsoft-edge-stable google-chrome-stable firefox postgresql* temurin-* *llvm* mysql* dotnet-sdk-*"
48+
remove_packages_one_command: true
49+
remove_folders: "/usr/share/swift /usr/share/miniconda /usr/share/az* /usr/local/lib/node_modules /usr/local/share/chromium /usr/local/share/powershell /usr/local/julia /usr/local/aws-cli /usr/local/aws-sam-cli /usr/share/gradle"
4850

4951
# `rustup show` installs from rust-toolchain.toml
5052
- name: Setup rust toolchain
@@ -115,11 +117,6 @@ jobs:
115117
- name: Link toolchain
116118
run: |
117119
cd rust
118-
ls
119-
echo ****
120-
ls build
121-
echo ****
122-
ls build/${{ matrix.arch.host_target }}
123120
rustup toolchain link my-toolchain build/${{ matrix.arch.host_target }}/stage2
124121
125122
- name: Smoke test

0 commit comments

Comments
 (0)