Skip to content

Commit c657653

Browse files
committed
build: try clean
1 parent 01147d2 commit c657653

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

.github/workflows/rust.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,6 @@ jobs:
179179
container:
180180
image: amd64/rust
181181
steps:
182-
- run: |
183-
# clear space for the examples
184-
# https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
185-
rm -rf /usr/share/dotnet
186-
rm -rf /opt/ghc
187-
rm -rf "$AGENT_TOOLSDIRECTORY"
188-
rm -rf "/usr/local/share/boost"
189182
- uses: actions/checkout@v4
190183
with:
191184
submodules: true

ci/scripts/rust_example.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,10 @@
1919

2020
set -ex
2121

22-
repo_dir=$PWD
23-
2422
cd datafusion-examples/examples/
2523
cargo fmt --all -- --check
2624
cargo check --examples
2725

28-
size_threshold=$((1 * 1024 * 1024 * 1024)) # 1GB
29-
3026
files=$(ls .)
3127
for filename in $files
3228
do
@@ -35,13 +31,6 @@ do
3531
if [ ! -d $filename ]; then
3632
cargo run --example $example_name
3733

38-
# If the examples are getting too big, run cargo clean
39-
current_size=$(du -s $repo_dir/target/debug | awk '{print $1}')
40-
41-
if [ $current_size -gt $size_threshold ]; then
42-
echo "Cleaning cargo due to directory size exceeding 10 GB..."
43-
cargo clean
44-
fi
45-
34+
cargo clean
4635
fi
4736
done

0 commit comments

Comments
 (0)