From 8bab209287aa2ed4055fa7e594a2787c20231c8a Mon Sep 17 00:00:00 2001 From: JGZ_YES Date: Mon, 3 Aug 2026 21:41:46 +0800 Subject: [PATCH] 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. --- .github/workflows/build-linux.yml | 2 ++ .github/workflows/build-macos.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 33bbe31..4b2f4c1 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -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/:" diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 5154428..b7891eb 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -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/:"