mirror of
https://github.com/sartoopjj/thefeed.git
synced 2026-05-18 06:34:36 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user