Skip to content

Commit 220e322

Browse files
committed
add grep check for my_func inline
1 parent 7bc6701 commit 220e322

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,10 @@ 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-
# TODO: grep the asm output for "call my_func" and fail if it is found.
79+
asm=$(objdump -dj .text tests/hello-world/target/debug/hello_world)
80+
if echo asm | grep -q "call .*mylib.*my_func" ; then
81+
echo "call my_func found in asm"
82+
exit 1
83+
else
84+
echo "success"
85+
fi

0 commit comments

Comments
 (0)