Add AArch64 auto build

This commit is contained in:
Tindy X
2020-03-02 20:57:54 +08:00
parent 849483fd43
commit ea47217b82
3 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
FROM arm64v8/alpine:latest
MAINTAINER Tindy X <tindy.it@gmail.com>
COPY qemu-aarch64-static /usr/bin
# build minimized
RUN apk add git g++ build-base linux-headers cmake && \
apk add libressl-dev curl-dev rapidjson-dev libevent-dev pcre2-dev yaml-cpp-dev && \
git clone https://github.com/tindy2013/subconverter && \
cd subconverter && \
cmake . && \
make -j4 && \
mv subconverter base/ && \
mv base ../ && \
cd .. && \
rm -rf subconverter && \
apk add pcre2 libcurl yaml-cpp libevent libpcrecpp && \
apk del git gcc g++ build-base linux-headers cmake libressl-dev curl-dev rapidjson-dev libevent-dev pcre2-dev yaml-cpp-dev
# set entry
WORKDIR /base
CMD ./subconverter

View File

@@ -0,0 +1,2 @@
#!/bin/bash
curl -L https://github.com/multiarch/qemu-user-static/releases/download/v4.2.0-6/x86_64_qemu-aarch64-static.tar.gz | tar zxvf - -C .

4
scripts/hooks/pre_build Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
# Register qemu-*-static for all supported processors except the
# current one, but also remove all registered binfmt_misc before
docker run --rm --privileged multiarch/qemu-user-static:register --reset