fix(修复镜像): 修复上游syscall导包问题
build.yaml / build (DockerfileHK, hkccr.ccs.tencentyun.com/xiaoqidun/goenv:latest, hkccr.ccs.tencentyun.com) (push) Successful in 9m58s
build.yaml / build (DockerfileCN, ccr.ccs.tencentyun.com/xiaoqidun/goenv:latest, ccr.ccs.tencentyun.com) (push) Successful in 7m52s

This commit is contained in:
2026-08-24 08:46:33 +08:00
parent 591bf990dc
commit 9e42d7a8d6
1 file changed
+3 -1
+3 -1
View File
@@ -20,6 +20,8 @@ jobs:
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://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
unzip -q android-ndk-r29-linux.zip && rm -f android-ndk-r29-linux.zip
- name: docker setup
uses: docker/setup-buildx-action@v3
@@ -41,4 +43,4 @@ jobs:
push: true
provenance: false
file: ${{ matrix.dockerfile }}
tags: ${{ matrix.image }}
tags: ${{ matrix.image }}