Skip to content

Commit

Permalink
Clear disk space on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Jun 3, 2022
1 parent af491f3 commit 65cc010
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
13 changes: 13 additions & 0 deletions ci/dump-environment.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 65cc010

Please sign in to comment.