Skip to content

Commit e3db480

Browse files
committed
update build go
1 parent 70482e5 commit e3db480

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/ts_release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ jobs:
3434
- name: Build Web and Docs
3535
if: matrix.group == 'standard'
3636
run: |
37-
go mod init torrserver-web-build
38-
go mod tidy
3937
go run gen_web.go
4038
cd server && ~/go/bin/swag init -g web/server.go
4139
@@ -74,12 +72,11 @@ jobs:
7472
- name: Build Android (Go 1.25)
7573
if: matrix.group == 'android'
7674
run: |
77-
go mod init torrserver-web-build
78-
go mod tidy
7975
go run gen_web.go
8076
LDFLAGS="-s -w -checklinkname=0"
8177
mkdir -p dist
8278
export NDK_TOOLCHAIN="$ANDROID_NDK_LATEST_HOME/toolchains/llvm/prebuilt/linux-x86_64"
79+
cd server
8380
8481
CC=$NDK_TOOLCHAIN/bin/armv7a-linux-androideabi21-clang CGO_ENABLED=1 GOOS=android GOARCH=arm GOARM=7 go build -ldflags="$LDFLAGS" -tags=nosqlite -trimpath -o dist/TorrServer-android-arm7 ./cmd
8582
CC=$NDK_TOOLCHAIN/bin/aarch64-linux-android21-clang CGO_ENABLED=1 GOOS=android GOARCH=arm64 go build -ldflags="$LDFLAGS" -tags=nosqlite -trimpath -o dist/TorrServer-android-arm64 ./cmd

0 commit comments

Comments
 (0)