Skip to content

Commit b118d5e

Browse files
Auto merge of #147518 - dianqk:update-llvm, r=<try>
Update LLVM to 21.1.3 try-job: x86_64-gnu-distcheck
2 parents 9725c4b + 4ac02cb commit b118d5e

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ jobs:
246246
run: src/ci/scripts/create-doc-artifacts.sh
247247

248248
- name: print disk usage
249+
# We also want to know the disk usage when the job fails.
250+
if: always()
249251
run: |
250252
echo "disk usage:"
251253
df -h

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3259,6 +3259,8 @@ fn distcheck_plain_source_tarball(builder: &Builder<'_>, plain_src_dir: &Path) {
32593259
.env("GITHUB_ACTIONS", "0")
32603260
.current_dir(plain_src_dir)
32613261
.run(builder);
3262+
// Mitigate pressure on small-capacity disks.
3263+
fs::remove_dir_all(plain_src_dir).unwrap();
32623264
}
32633265

32643266
/// Check that rust-src has all of libstd's dependencies
@@ -3284,6 +3286,8 @@ fn distcheck_rust_src(builder: &Builder<'_>, src_dir: &Path) {
32843286
.arg(&toml)
32853287
.current_dir(src_dir)
32863288
.run(builder);
3289+
// Mitigate pressure on small-capacity disks.
3290+
fs::remove_dir_all(src_dir).unwrap();
32873291
}
32883292

32893293
/// Check that rustc-dev's compiler crate source code can be loaded with `cargo metadata`
@@ -3308,6 +3312,8 @@ fn distcheck_rustc_dev(builder: &Builder<'_>, dir: &Path) {
33083312
.env("RUSTC", &builder.initial_rustc)
33093313
.current_dir(dir)
33103314
.run(builder);
3315+
// Mitigate pressure on small-capacity disks.
3316+
fs::remove_dir_all(dir).unwrap();
33113317
}
33123318

33133319
#[derive(Debug, Clone, PartialEq, Eq, Hash)]

0 commit comments

Comments
 (0)