Add docker build for mips/el-unknown-linux-musl

This commit is contained in:
cyber386
2020-08-07 16:25:57 +08:00
committed by ty
parent b7079d29fa
commit 1d0fc9ab61
2 changed files with 12 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ jobs:
docker build -t shadowsocks-rust:x86_64-unknown-linux-gnu -f Dockerfile.x86_64-unknown-linux-gnu .
docker build -t shadowsocks-rust:arm-unknown-linux-gnueabihf -f Dockerfile.arm-unknown-linux-gnueabihf .
docker build -t shadowsocks-rust:aarch64-unknown-linux-gnu -f Dockerfile.aarch64-unknown-linux-gnu .
docker build -t shadowsocks-rust:mips-unknown-linux-musl -f Dockerfile.mips-unknown-linux-musl .
docker build -t shadowsocks-rust:mipsel-unknown-linux-musl -f Dockerfile.mipsel-unknown-linux-musl .
- name: Install cross
run: cargo install cross
- name: Build releases

View File

@@ -28,6 +28,9 @@ if [[ "${#targets[@]}" == "0" ]]; then
"arm-unknown-linux-gnueabihf" # armhf, hard
"aarch64-unknown-linux-gnu"
"mips-unknown-linux-musl" # big endian
"mipsel-unknown-linux-musl" # little endian
)
fi
@@ -44,8 +47,15 @@ function build() {
EXTRA_FEATURES="local-redir"
fi
EXTRA_FLAG=""
if [[ "$TARGET" == "mips"* ]]; then
EXTRA_FEATURES="sodium rc4 aes-cfb aes-ctr local-http local-http-native-tls local-tunnel local-socks4 local-redir"
EXTRA_FLAG="--no-default-features"
fi
cross build --target "${TARGET}" \
--features "aes-pmac-siv openssl-vendored ${EXTRA_FEATURES}" \
${EXTRA_FLAG} \
--release
if [[ $? != "0" ]]; then