Skip to content

Commit 6676450

Browse files
committed
Remove target files before manually copying the patched std files for checking binary size in CI.
1 parent f3af31c commit 6676450

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/check-binary-size.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ jobs:
5050
git add library/backtrace
5151
rm -rf build/x86_64-unknown-linux-gnu/stage0-std
5252
python3 x.py build library --stage 0
53-
cp -r ./build/x86_64-unknown-linux-gnu/stage0/bin ./build/x86_64-unknown-linux-gnu/stage0-sysroot/bin
54-
cp -r ./build/x86_64-unknown-linux-gnu/stage0/lib/*.so ./build/x86_64-unknown-linux-gnu/stage0-sysroot/lib
53+
cp -r --remove-destination ./build/x86_64-unknown-linux-gnu/stage0/bin ./build/x86_64-unknown-linux-gnu/stage0-sysroot/bin
54+
cp -r --remove-destination ./build/x86_64-unknown-linux-gnu/stage0/lib/*.so ./build/x86_64-unknown-linux-gnu/stage0-sysroot/lib
5555
./build/x86_64-unknown-linux-gnu/stage0-sysroot/bin/rustc -O foo.rs -o binary-updated
5656
- name: Display binary size
5757
run: |

0 commit comments

Comments
 (0)