fix: skip UPX for android arm build

Android 10+ enforces W^X (Write XOR Execute) — UPX's self-extracting
stub allocates RWX memory at runtime, which the kernel kills immediately.
Skip UPX for the armeabi-v7a matrix entry so the binary loads cleanly.
This commit is contained in:
Sepehr
2026-04-24 13:00:25 -04:00
parent e815dba9ec
commit 145e894f82
+2 -2
View File
@@ -53,7 +53,7 @@ jobs:
go-version: '1.26'
- name: Install UPX
if: matrix.goos == 'linux' || matrix.goos == 'windows'
if: (matrix.goos == 'linux' || matrix.goos == 'windows') && !matrix.android_arm
run: sudo apt-get update && sudo apt-get install -y upx-ucl
- name: Build Server
@@ -92,7 +92,7 @@ jobs:
go build -trimpath -ldflags="${LDFLAGS}" -o "$out" ./cmd/client
- name: Compress with UPX
if: matrix.goos == 'linux' || matrix.goos == 'windows'
if: (matrix.goos == 'linux' || matrix.goos == 'windows') && !matrix.android_arm
run: |
for f in build/*; do
if [ -f "$f" ]; then