ci: chmod +x compiled smoke-test binary before running

paze does not set the executable bit on output ELF/Mach-O, so the
smoke test hit "Permission denied". Add chmod +x so the compiled
hello binary actually executes on both Linux and macOS workflows.
这个提交包含在:
2026-08-03 21:41:46 +08:00
父节点 2a418f768d
当前提交 8bab209287
修改 2 个文件,包含 4 行新增0 行删除
+2
查看文件
@@ -100,10 +100,12 @@ jobs:
if [ -f "$BIN/paze" ]; then
"$BIN/paze" tests/hello.pe --target linux $ARCH_FLAG -o /tmp/hello.elf
file /tmp/hello.elf
chmod +x /tmp/hello.elf
/tmp/hello.elf || true
elif [ -f "$BIN/paze.dll" ]; then
dotnet "$BIN/paze.dll" tests/hello.pe --target linux $ARCH_FLAG -o /tmp/hello.elf
file /tmp/hello.elf
chmod +x /tmp/hello.elf
/tmp/hello.elf || true
else
echo "WARN: paze binary not found, listing bin/:"
+2
查看文件
@@ -101,11 +101,13 @@ jobs:
if [ -f "$BIN/paze" ]; then
"$BIN/paze" tests/hello.pe --target macos $ARCH_FLAG -o /tmp/hello.macos
file /tmp/hello.macos
chmod +x /tmp/hello.macos
# macOS 上执行编译产物(Mach-O 原生可执行;x64 经 Rosetta 2
/tmp/hello.macos || true
elif [ -f "$BIN/paze.dll" ]; then
dotnet "$BIN/paze.dll" tests/hello.pe --target macos $ARCH_FLAG -o /tmp/hello.macos
file /tmp/hello.macos
chmod +x /tmp/hello.macos
/tmp/hello.macos || true
else
echo "WARN: paze binary not found, listing bin/:"