mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-28 20:32:42 +00:00
Add AArch64 auto build
This commit is contained in:
22
scripts/Dockerfile.aarch64
Normal file
22
scripts/Dockerfile.aarch64
Normal 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
|
||||
2
scripts/hooks/post_checkout
Normal file
2
scripts/hooks/post_checkout
Normal 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
4
scripts/hooks/pre_build
Normal 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
|
||||
Reference in New Issue
Block a user