feat(更新构建): 更新构建方式

This commit is contained in:
xiaoqidun 2020-09-22 15:55:02 +08:00
parent d021217ef5
commit 6875347a72
2 changed files with 11 additions and 4 deletions

View File

@ -3,6 +3,12 @@ type: docker
name: default
steps:
- name: build
pull: if-not-exists
image: golang
commands:
- wget -q -T 180 https://dl.google.com/android/repository/android-ndk-r21b-linux-x86_64.zip
- unzip -q android-ndk-r21b-linux-x86_64.zip
- name: docker
pull: if-not-exists
image: plugins/docker

View File

@ -4,7 +4,8 @@ FROM golang:buster
# 作者信息
LABEL MAINTAINER="xiaoqidun@gmail.com"
# 安装工具
RUN apt-get update \
&& apt-get install -y \
unzip
# 安装android ndk
COPY android-ndk-r21b /usr/local/android-ndk-r21b
# 环境变量
ENV PATH=$PATH:/usr/local/android-ndk-r21b/toolchains/llvm/prebuilt/linux-x86_64/bin