From 6875347a7212a2160d21680683f86ef635c7224b Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Tue, 22 Sep 2020 15:55:02 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=9B=B4=E6=96=B0=E6=9E=84=E5=BB=BA):=20?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=9E=84=E5=BB=BA=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 6 ++++++ Dockerfile | 9 +++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index c02f051..ad566dd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 63cd902..45197eb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ No newline at end of file