mirror of
https://github.com/xiaoqidun/goenv.git
synced 2026-10-12 12:54:06 +08:00
feat(升级版本): 升级到Go1.27.2
This commit is contained in:
1 parent
f78fc0f9df
commit
fa74875279
3 files changed
+8
-8
No files matched your search
@@ -17,10 +17,10 @@ jobs:
|
|||||||
- name: download
|
- name: download
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y wget unzip && rm -rf /var/lib/apt/lists/*
|
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.1-1/go-legacy-win7-1.27.1-1.linux_amd64.tar.gz
|
wget -T 180 -4 https://github.com/thongtech/go-legacy-win7/releases/download/v1.27.2-1/go-legacy-win7-1.27.2-1.linux_amd64.tar.gz
|
||||||
wget -T 180 -4 https://dl.google.com/android/repository/android-ndk-r29-linux.zip
|
wget -T 180 -4 https://dl.google.com/android/repository/android-ndk-r30-linux.zip
|
||||||
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
|
tar -zxf go-legacy-win7-1.27.2-1.linux_amd64.tar.gz && rm -f go-legacy-win7-1.27.2-1.linux_amd64.tar.gz
|
||||||
unzip -q android-ndk-r29-linux.zip && rm -f android-ndk-r29-linux.zip
|
unzip -q android-ndk-r30-linux.zip && rm -f android-ndk-r30-linux.zip
|
||||||
- name: docker setup
|
- name: docker setup
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
+2
-2
@@ -18,9 +18,9 @@ RUN apt-get update \
|
|||||||
COPY go-legacy-win7 /usr/local/go-legacy-win7
|
COPY go-legacy-win7 /usr/local/go-legacy-win7
|
||||||
|
|
||||||
# 安装 NDK
|
# 安装 NDK
|
||||||
COPY android-ndk-r29 /usr/local/android-ndk-r29
|
COPY android-ndk-r30 /usr/local/android-ndk-r30
|
||||||
|
|
||||||
# 环境变量
|
# 环境变量
|
||||||
ENV PATH=$PATH:/usr/local/go-legacy-win7/bin:/usr/local/android-ndk-r29/toolchains/llvm/prebuilt/linux-x86_64/bin
|
ENV PATH=$PATH:/usr/local/go-legacy-win7/bin:/usr/local/android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64/bin
|
||||||
ENV GO111MODULE=on
|
ENV GO111MODULE=on
|
||||||
ENV GOPROXY=https://goproxy.cn|direct
|
ENV GOPROXY=https://goproxy.cn|direct
|
||||||
+2
-2
@@ -15,9 +15,9 @@ RUN apt-get update \
|
|||||||
COPY go-legacy-win7 /usr/local/go-legacy-win7
|
COPY go-legacy-win7 /usr/local/go-legacy-win7
|
||||||
|
|
||||||
# 安装 NDK
|
# 安装 NDK
|
||||||
COPY android-ndk-r29 /usr/local/android-ndk-r29
|
COPY android-ndk-r30 /usr/local/android-ndk-r30
|
||||||
|
|
||||||
# 环境变量
|
# 环境变量
|
||||||
ENV PATH=$PATH:/usr/local/go-legacy-win7/bin:/usr/local/android-ndk-r29/toolchains/llvm/prebuilt/linux-x86_64/bin
|
ENV PATH=$PATH:/usr/local/go-legacy-win7/bin:/usr/local/android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64/bin
|
||||||
ENV GO111MODULE=on
|
ENV GO111MODULE=on
|
||||||
ENV GOPROXY=https://goproxy.aite.xyz|direct
|
ENV GOPROXY=https://goproxy.aite.xyz|direct
|
||||||
Reference in new issue
Block a user