From fc5edf434a78da90271a65e84752cb27212040ac Mon Sep 17 00:00:00 2001 From: kiper292 Date: Sat, 4 Apr 2026 02:16:02 +0500 Subject: [PATCH] add mipsle arch --- .github/workflows/ci.yml | 4 ++++ .github/workflows/release.yml | 29 +++++++++++++++++++++++++++-- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e4d7de..ecd517f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,6 +69,10 @@ jobs: goarch: arm64 cgo: 1 api: 21 + - goos: android + goarch: arm + cgo: 1 + api: 21 # you can add more (android/arm, windows, etc.) later steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f4247cd..306a2c9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,21 @@ jobs: goarch: arm goarm: '7' cgo: 0 + - goos: linux + goarch: mipsle + gomips: softfloat + cgo: 0 + - goos: linux + goarch: mips + gomips: softfloat + cgo: 0 + - goos: linux + goarch: mips64le + gomips: softfloat + cgo: 0 + - goos: linux + goarch: riscv64 + cgo: 0 - goos: darwin goarch: amd64 cgo: 0 @@ -36,6 +51,9 @@ jobs: - goos: windows goarch: amd64 cgo: 0 + - goos: windows + goarch: arm64 + cgo: 0 - goos: windows goarch: 386 cgo: 0 @@ -43,6 +61,10 @@ jobs: goarch: arm64 cgo: 1 api: 21 + - goos: android + goarch: arm + cgo: 1 + api: 21 - goos: freebsd goarch: amd64 cgo: 0 @@ -69,6 +91,7 @@ jobs: env: GOOS: ${{ matrix.goos }} GOARCH: ${{ matrix.goarch }} + GOMIPS: ${{ matrix.gomips }} GOARM: ${{ matrix.goarm }} CGO_ENABLED: ${{ matrix.cgo }} ANDROID_API: ${{ matrix.api }} @@ -87,6 +110,8 @@ jobs: if [ "$GOARCH" = "arm64" ]; then export CC="$TOOLCHAIN_BIN/aarch64-linux-android${ANDROID_API}-clang" + elif [ "$GOARCH" = "arm" ]; then + export CC="$TOOLCHAIN_BIN/armv7a-linux-androideabi${ANDROID_API}-clang" else echo "Unsupported ANDROID GOARCH=$GOARCH" exit 1 @@ -104,12 +129,12 @@ jobs: EXT= fi - GOOS=$GOOS GOARCH=$GOARCH GOARM=$GOARM \ + GOOS=$GOOS GOARCH=$GOARCH GOARM=$GOARM GOMIPS=$GOMIPS \ go build -ldflags "-s -w -checklinkname=0" -trimpath \ -o "dist/client-${GOOS}-${GOARCH}${EXT}" \ ./client - GOOS=$GOOS GOARCH=$GOARCH GOARM=$GOARM \ + GOOS=$GOOS GOARCH=$GOARCH GOARM=$GOARM GOMIPS=$GOMIPS \ go build -ldflags "-s -w -checklinkname=0" -trimpath \ -o "dist/server-${GOOS}-${GOARCH}${EXT}" \ ./server