This commit is contained in:
rustmailer
2025-11-27 02:01:09 +08:00
parent b845eda58a
commit 855c9a1ffc
3 changed files with 21 additions and 10 deletions
+8 -8
View File
@@ -19,8 +19,8 @@ jobs:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
# - target: x86_64-unknown-linux-musl
# os: ubuntu-latest
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-msvc
@@ -56,20 +56,20 @@ jobs:
pnpm install
pnpm run build
# - name: Install musl-tools (Linux musl only)
# if: matrix.target == 'x86_64-unknown-linux-musl'
# run: sudo apt-get update && sudo apt-get install -y musl-tools
- name: Install musl-tools (Linux musl only)
if: matrix.target == 'x86_64-unknown-linux-musl'
run: sudo apt-get update && sudo apt-get install -y musl-tools
- name: Build aarch64 Rust backend
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: |
cargo install cross --force
cross build --release --target=${{ matrix.target }}
cross build --release --features vendored-openssl --target=${{ matrix.target }}
- name: Build Rust backend
if: matrix.target != 'aarch64-unknown-linux-gnu'
run: |
cargo build --release --target=${{ matrix.target }}
cargo build --release --features vendored-openssl --target=${{ matrix.target }}
- name: Strip binary (Linux and macOS)
if: matrix.os != 'windows-latest' && matrix.target != 'aarch64-unknown-linux-gnu'