mirror of
https://github.com/xiaoqidun/goenv.git
synced 2026-09-21 06:04:47 +08:00
feat(升级版本): 升级到Go1.27.1
This commit is contained in:
1 parent
9e42d7a8d6
commit
f78fc0f9df
1 file changed
+2
-4
@@ -17,11 +17,9 @@ jobs:
|
||||
- name: download
|
||||
run: |
|
||||
apt-get update && apt-get install -y wget unzip && rm -rf /var/lib/apt/lists/*
|
||||
wget -T 180 -4 https://github.com/thongtech/go-legacy-win7/releases/download/v1.27.0-2/go-legacy-win7-1.27.0-2.linux_amd64.tar.gz
|
||||
wget -T 180 -4 https://github.com/thongtech/go-legacy-win7/releases/download/v1.27.1-1/go-legacy-win7-1.27.1-1.linux_amd64.tar.gz
|
||||
wget -T 180 -4 https://dl.google.com/android/repository/android-ndk-r29-linux.zip
|
||||
tar -zxf go-legacy-win7-1.27.0-2.linux_amd64.tar.gz && rm -f go-legacy-win7-1.27.0-2.linux_amd64.tar.gz
|
||||
grep -q '^[[:space:]]*"syscall"$' go-legacy-win7/src/os/root_noopenat.go || sed -i 's#"sync/atomic"#"sync/atomic"\n\t"syscall"#' go-legacy-win7/src/os/root_noopenat.go
|
||||
GOOS=js GOARCH=wasm CGO_ENABLED=0 ./go-legacy-win7/bin/go build -a os
|
||||
tar -zxf go-legacy-win7-1.27.1-1.linux_amd64.tar.gz && rm -f go-legacy-win7-1.27.1-1.linux_amd64.tar.gz
|
||||
unzip -q android-ndk-r29-linux.zip && rm -f android-ndk-r29-linux.zip
|
||||
- name: docker setup
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
Reference in new issue
Block a user