mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
Add docker build for mips/el-unknown-linux-musl
This commit is contained in:
2
.github/workflows/build-release.yml
vendored
2
.github/workflows/build-release.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user