Skip to content

Commit 70482e5

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

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ts_release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ jobs:
3434
- name: Build Web and Docs
3535
if: matrix.group == 'standard'
3636
run: |
37-
GO111MODULE=off go run gen_web.go
37+
go mod init torrserver-web-build
38+
go mod tidy
39+
go run gen_web.go
3840
cd server && ~/go/bin/swag init -g web/server.go
3941
4042
- name: Build Standard Platforms
@@ -72,7 +74,9 @@ jobs:
7274
- name: Build Android (Go 1.25)
7375
if: matrix.group == 'android'
7476
run: |
75-
GO111MODULE=off go run gen_web.go
77+
go mod init torrserver-web-build
78+
go mod tidy
79+
go run gen_web.go
7680
LDFLAGS="-s -w -checklinkname=0"
7781
mkdir -p dist
7882
export NDK_TOOLCHAIN="$ANDROID_NDK_LATEST_HOME/toolchains/llvm/prebuilt/linux-x86_64"

0 commit comments

Comments
 (0)