mirror of https://github.com/rust-lang/cargo
Clear disk space on CI.
This commit is contained in:
parent
af491f39a0
commit
65cc01075e
|
@ -54,6 +54,8 @@ jobs:
|
||||||
other: i686-pc-windows-gnu
|
other: i686-pc-windows-gnu
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: Dump Environment
|
||||||
|
run: ci/dump-environment.sh
|
||||||
- name: Update Rustup (temporary workaround)
|
- name: Update Rustup (temporary workaround)
|
||||||
run: rustup self update
|
run: rustup self update
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -97,6 +99,13 @@ jobs:
|
||||||
# download all workspaces.
|
# download all workspaces.
|
||||||
cargo test --manifest-path benches/benchsuite/Cargo.toml --all-targets -- cargo
|
cargo test --manifest-path benches/benchsuite/Cargo.toml --all-targets -- cargo
|
||||||
cargo check --manifest-path benches/capture/Cargo.toml
|
cargo check --manifest-path benches/capture/Cargo.toml
|
||||||
|
# The testsuite generates a huge amount of data, and fetch-smoke-test was
|
||||||
|
# running out of disk space.
|
||||||
|
- name: Clear test output
|
||||||
|
run: |
|
||||||
|
df -h
|
||||||
|
rm -rf target/tmp
|
||||||
|
df -h
|
||||||
- name: Fetch smoke test
|
- name: Fetch smoke test
|
||||||
run: ci/fetch-smoke-test.sh
|
run: ci/fetch-smoke-test.sh
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# This script dumps information about the build environment to stdout.
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
IFS=$'\n\t'
|
||||||
|
|
||||||
|
echo "environment variables:"
|
||||||
|
printenv | sort
|
||||||
|
echo
|
||||||
|
|
||||||
|
echo "disk usage:"
|
||||||
|
df -h
|
||||||
|
echo
|
Loading…
Reference in New Issue