File tree Expand file tree Collapse file tree 2 files changed +1
-19
lines changed
Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1919
2020set -ex
2121
22- repo_dir=$PWD
23-
2422cd datafusion-examples/examples/
2523cargo fmt --all -- --check
2624cargo check --examples
2725
28- size_threshold=$(( 1 * 1024 * 1024 * 1024 )) # 1GB
29-
3026files=$( ls .)
3127for filename in $files
3228do
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
4736done
You can’t perform that action at this time.
0 commit comments