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.
这个提交包含在:
@@ -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/:"
|
||||
|
||||
@@ -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/:"
|
||||
|
||||
在新工单中引用
屏蔽一个用户