feat: passing -Z directly to cross, enables mips-*-musl* targets

This commit is contained in:
zonyitoo
2024-11-26 01:51:59 +08:00
parent 796a19048d
commit c80d3174f1
3 changed files with 45 additions and 20 deletions

View File

@@ -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

View File

@@ -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