mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
feat: passing -Z directly to cross, enables mips-*-musl* targets
This commit is contained in:
19
.github/workflows/build-nightly-release.yml
vendored
19
.github/workflows/build-nightly-release.yml
vendored
@@ -20,8 +20,22 @@ jobs:
|
||||
toolchain: stable
|
||||
- target: aarch64-unknown-linux-musl
|
||||
toolchain: stable
|
||||
- target: mips-unknown-linux-gnu
|
||||
toolchain: nightly
|
||||
- target: mipsel-unknown-linux-musl
|
||||
toolchain: nightly
|
||||
- target: mipsel-unknown-linux-gnu
|
||||
toolchain: nightly
|
||||
- target: mipsel-unknown-linux-musl
|
||||
toolchain: nightly
|
||||
- target: mips64-unknown-linux-gnuabi64
|
||||
toolchain: nightly
|
||||
- target: mips64-unknown-linux-muslabi64
|
||||
toolchain: nightly
|
||||
- target: mips64el-unknown-linux-gnuabi64
|
||||
toolchain: nightly
|
||||
- target: mips64el-unknown-linux-muslabi64
|
||||
toolchain: nightly
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -34,7 +48,7 @@ jobs:
|
||||
rustup override set ${{ matrix.platform.toolchain }}
|
||||
|
||||
- name: Install cross
|
||||
run: cargo install cross --git https://github.com/cross-rs/cross.git
|
||||
run: cargo install cross
|
||||
|
||||
- name: Build ${{ matrix.platform.target }}
|
||||
timeout-minutes: 120
|
||||
@@ -61,10 +75,11 @@ jobs:
|
||||
fi
|
||||
|
||||
compile_nightly="-n"
|
||||
compile_features="-Z build-std=std,panic_abort,proc_macro"
|
||||
fi
|
||||
|
||||
cd build
|
||||
./build-release -t ${{ matrix.platform.target }} $compile_features $compile_compress $compile_nightly
|
||||
./build-release -t ${{ matrix.platform.target }} $compile_features $compile_compress $compile_nightly $compile_features
|
||||
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
13
.github/workflows/build-release.yml
vendored
13
.github/workflows/build-release.yml
vendored
@@ -48,12 +48,20 @@ jobs:
|
||||
toolchain: stable
|
||||
- target: mips-unknown-linux-gnu
|
||||
toolchain: nightly
|
||||
- target: mipsel-unknown-linux-musl
|
||||
toolchain: nightly
|
||||
- target: mipsel-unknown-linux-gnu
|
||||
toolchain: nightly
|
||||
- target: mipsel-unknown-linux-musl
|
||||
toolchain: nightly
|
||||
- target: mips64-unknown-linux-gnuabi64
|
||||
toolchain: nightly
|
||||
- target: mips64-unknown-linux-muslabi64
|
||||
toolchain: nightly
|
||||
- target: mips64el-unknown-linux-gnuabi64
|
||||
toolchain: nightly
|
||||
- target: mips64el-unknown-linux-muslabi64
|
||||
toolchain: nightly
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -66,7 +74,7 @@ jobs:
|
||||
rustup override set ${{ matrix.platform.toolchain }}
|
||||
|
||||
- name: Install cross
|
||||
run: cargo install cross --git https://github.com/cross-rs/cross.git
|
||||
run: cargo install cross
|
||||
|
||||
- name: Build ${{ matrix.platform.target }}
|
||||
timeout-minutes: 120
|
||||
@@ -86,10 +94,11 @@ jobs:
|
||||
fi
|
||||
|
||||
compile_nightly="-n"
|
||||
compile_features="-Z build-std=std,panic_abort,proc_macro"
|
||||
fi
|
||||
|
||||
cd build
|
||||
./build-release -t ${{ matrix.platform.target }} $compile_features $compile_compress $compile_nightly
|
||||
./build-release -t ${{ matrix.platform.target }} $compile_features $compile_compress $compile_nightly $compile_features
|
||||
|
||||
- name: Upload Github Assets
|
||||
uses: softprops/action-gh-release@v2
|
||||
|
||||
Reference in New Issue
Block a user