mirror of
https://github.com/xiaoqidun/goenv.git
synced 2026-03-27 08:43:37 +08:00
Compare commits
4 Commits
3d5b07edd2
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| abf332ab4b | |||
| a15ea73122 | |||
| 064a5a4369 | |||
| d708c93086 |
@@ -17,9 +17,9 @@ 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 -q -T 180 -4 https://github.com/thongtech/go-legacy-win7/releases/download/v1.26.0-2/go-legacy-win7-1.26.0-2.linux_amd64.tar.gz
|
wget -T 180 -4 https://github.com/thongtech/go-legacy-win7/releases/download/v1.26.1-1/go-legacy-win7-1.26.1-1.linux_amd64.tar.gz
|
||||||
wget -q -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-r29-linux.zip
|
||||||
tar -zxf go-legacy-win7-1.26.0-2.linux_amd64.tar.gz && rm -f go-legacy-win7-1.26.0-2.linux_amd64.tar.gz
|
tar -zxf go-legacy-win7-1.26.1-1.linux_amd64.tar.gz && rm -f go-legacy-win7-1.26.1-1.linux_amd64.tar.gz
|
||||||
unzip -q android-ndk-r29-linux.zip && rm -f android-ndk-r29-linux.zip
|
unzip -q android-ndk-r29-linux.zip && rm -f android-ndk-r29-linux.zip
|
||||||
- name: docker setup
|
- name: docker setup
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|||||||
+4
-4
@@ -4,20 +4,20 @@ FROM debian:trixie-slim
|
|||||||
# 作者信息
|
# 作者信息
|
||||||
LABEL authors="xiaoqidun"
|
LABEL authors="xiaoqidun"
|
||||||
|
|
||||||
# 使用中国软件源
|
# 中科大源
|
||||||
RUN sed -i "s|deb.debian.org|mirrors.ustc.edu.cn|g" /etc/apt/sources.list.d/debian.sources
|
RUN sed -i "s|deb.debian.org|mirrors.ustc.edu.cn|g" /etc/apt/sources.list.d/debian.sources
|
||||||
|
|
||||||
# 安装编译工具链
|
# 编译工具
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y \
|
&& apt-get install -y \
|
||||||
build-essential mingw-w64 \
|
build-essential mingw-w64 \
|
||||||
autoconf libtool pkgconf git \
|
autoconf libtool pkgconf git \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# 安装go-legacy-win7
|
# 安装 Go
|
||||||
COPY go-legacy-win7 /usr/local/go-legacy-win7
|
COPY go-legacy-win7 /usr/local/go-legacy-win7
|
||||||
|
|
||||||
# 安装android ndk
|
# 安装 NDK
|
||||||
COPY android-ndk-r29 /usr/local/android-ndk-r29
|
COPY android-ndk-r29 /usr/local/android-ndk-r29
|
||||||
|
|
||||||
# 环境变量
|
# 环境变量
|
||||||
|
|||||||
+3
-3
@@ -4,17 +4,17 @@ FROM debian:trixie-slim
|
|||||||
# 作者信息
|
# 作者信息
|
||||||
LABEL authors="xiaoqidun"
|
LABEL authors="xiaoqidun"
|
||||||
|
|
||||||
# 安装编译工具链
|
# 编译工具
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y \
|
&& apt-get install -y \
|
||||||
build-essential mingw-w64 \
|
build-essential mingw-w64 \
|
||||||
autoconf libtool pkgconf git \
|
autoconf libtool pkgconf git \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# 安装go-legacy-win7
|
# 安装 Go
|
||||||
COPY go-legacy-win7 /usr/local/go-legacy-win7
|
COPY go-legacy-win7 /usr/local/go-legacy-win7
|
||||||
|
|
||||||
# 安装android ndk
|
# 安装 NDK
|
||||||
COPY android-ndk-r29 /usr/local/android-ndk-r29
|
COPY android-ndk-r29 /usr/local/android-ndk-r29
|
||||||
|
|
||||||
# 环境变量
|
# 环境变量
|
||||||
|
|||||||
Reference in New Issue
Block a user