fix: update build configuration for Android ARM to use Linux settings

This commit is contained in:
Sarto
2026-04-15 15:15:13 +03:30
parent 4111d5115a
commit e31bafe001
2 changed files with 10 additions and 4 deletions
+9 -3
View File
@@ -42,9 +42,10 @@ jobs:
goarch: amd64
- goos: android
goarch: arm64
- goos: android
- goos: linux
goarch: arm
goarm: '7'
android_arm: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
@@ -56,7 +57,7 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y upx-ucl
- name: Build Server
if: matrix.goos != 'android'
if: matrix.goos != 'android' && !matrix.android_arm
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
@@ -83,7 +84,12 @@ jobs:
LDFLAGS="-s -w -X github.com/sartoopjj/thefeed/internal/version.Version=${VERSION} -X github.com/sartoopjj/thefeed/internal/version.Commit=${COMMIT} -X github.com/sartoopjj/thefeed/internal/version.Date=${DATE}"
ext=""
if [ "${{ matrix.goos }}" = "windows" ]; then ext=".exe"; fi
go build -trimpath -ldflags="${LDFLAGS}" -o build/thefeed-client-${{ matrix.goos }}-${{ matrix.goarch }}${ext} ./cmd/client
if [ "${{ matrix.android_arm }}" = "true" ]; then
out="build/thefeed-client-android-arm"
else
out="build/thefeed-client-${{ matrix.goos }}-${{ matrix.goarch }}${ext}"
fi
go build -trimpath -ldflags="${LDFLAGS}" -o "$out" ./cmd/client
- name: Compress with UPX
if: matrix.goos == 'linux' || matrix.goos == 'windows'
+1 -1
View File
@@ -87,7 +87,7 @@ build-android-arm64:
build-android-arm:
@mkdir -p $(BUILD_DIR)
CGO_ENABLED=0 GOOS=android GOARCH=arm GOARM=7 go build $(GOFLAGS) -o $(BUILD_DIR)/$(BINARY_CLIENT)-android-arm ./cmd/client
GOOS=linux GOARCH=arm GOARM=7 go build $(GOFLAGS) -o $(BUILD_DIR)/$(BINARY_CLIENT)-android-arm ./cmd/client
# UPX compression (requires upx in PATH) — only for Linux/Windows binaries
upx: