Clear disk space on CI.

This commit is contained in:
Eric Huss 2022-06-02 17:55:45 -07:00
parent af491f39a0
commit 65cc01075e
2 changed files with 22 additions and 0 deletions

View File

@ -54,6 +54,8 @@ jobs:
other: i686-pc-windows-gnu
steps:
- uses: actions/checkout@v3
- name: Dump Environment
run: ci/dump-environment.sh
- name: Update Rustup (temporary workaround)
run: rustup self update
shell: bash
@ -97,6 +99,13 @@ jobs:
# download all workspaces.
cargo test --manifest-path benches/benchsuite/Cargo.toml --all-targets -- cargo
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
run: ci/fetch-smoke-test.sh

13
ci/dump-environment.sh Executable file
View File

@ -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