Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i try to build rust in github action but get System.IO.IOException: No space left on device : '/home/runner/runners/2.322.0/_diag/Worker_20250321-122340-utc.log' #138825

Closed
chaowenguo1 opened this issue Mar 22, 2025 · 3 comments

Comments

@chaowenguo1
Copy link

chaowenguo1 commented Mar 22, 2025

i try to fork rust github repo and build in github action but get System.IO.IOException: No space left on device : '/home/runner/runners/2.322.0/_diag/Worker_20250321-122340-utc.log'

github action workflow:

on: push

jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@main
- run: |
./configure --set install.prefix=${{github.workspace}}/product --set install.sysconfdir=${{github.workspace}}/product
make
make install
cd ${{github.workspace}}
tar -cjvf rust.tar.bz2 product

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Mar 22, 2025
@Noratrieb
Copy link
Member

building rust uses a lot of disk space. we have a bunch of scripts to delete stuff from the actions images to free up space in src/ci

@chaowenguo1
Copy link
Author

which script i should looking for? how to add it to github action workflows?@Noratrieb

@jieyouxu
Copy link
Member

You may take inspiration from https://github.com/rust-lang/rust/blob/master/src/ci/scripts/free-disk-space.sh but YMMV as that's what rust-lang/rust CI needs.

I'm going to close this issue as inactionable on the rust-lang/rust issue tracker, because this is a GitHub Actions concern and not a concern for the Rust projects in this repo. If you still need assistance, you probably will need to ask the GitHub Actions team at https://github.com/actions/runner-images/.

@jieyouxu jieyouxu closed this as not planned Won't fix, can't repro, duplicate, stale Mar 22, 2025
@jieyouxu jieyouxu removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants