Skip to content

Commit

Permalink
build: try clean
Browse files Browse the repository at this point in the history
  • Loading branch information
tshauck committed Jun 30, 2024
1 parent 2dc3d0d commit ece7907
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 21 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,6 @@ jobs:
container:
image: amd64/rust
steps:
- run: |
# clear space for the examples
# https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
rm -rf /usr/share/dotnet
rm -rf /opt/ghc
rm -rf "$AGENT_TOOLSDIRECTORY"
rm -rf "/usr/local/share/boost"
- uses: actions/checkout@v4
with:
submodules: true
Expand Down
13 changes: 1 addition & 12 deletions ci/scripts/rust_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,10 @@

set -ex

repo_dir=$PWD

cd datafusion-examples/examples/
cargo fmt --all -- --check
cargo check --examples

size_threshold=$((1 * 1024 * 1024 * 1024)) # 1GB

files=$(ls .)
for filename in $files
do
Expand All @@ -35,13 +31,6 @@ do
if [ ! -d $filename ]; then
cargo run --example $example_name

# If the examples are getting too big, run cargo clean
current_size=$(du -s $repo_dir/target/debug | awk '{print $1}')

if [ $current_size -gt $size_threshold ]; then
echo "Cleaning cargo due to directory size exceeding 10 GB..."
cargo clean
fi

cargo clean
fi
done

0 comments on commit ece7907

Please sign in to comment.