Skip to content

Commit efdc506

Browse files
committed
improve grep check and robust comments
1 parent 3895429 commit efdc506

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,9 @@ jobs:
7676
- name: Run y.sh cargo build
7777
run: |
7878
EMBED_LTO_BITCODE=1 CHANNEL="release" ./y.sh cargo build --release --manifest-path tests/hello-world/Cargo.toml
79-
asm=$(objdump -dj .text tests/hello-world/target/release/hello_world)
80-
if echo asm | grep -q "call .*mylib.*my_func" ; then
81-
echo "call my_func found in asm"
79+
call_found=$(objdump -dj .text tests/hello-world/target/release/hello_world | grep -q "call .*mylib.*my_func" )
80+
if call_found then
81+
echo "ERROR: call my_func found in asm"
82+
echo "Test is done with LTO enabled, hence inlining should occur across crates"
8283
exit 1
83-
else
84-
echo "success"
8584
fi

0 commit comments

Comments
 (0)