This commit is contained in:
rustmailer
2025-11-21 22:50:03 +08:00
parent b6847be9f4
commit 80a2667ae1
+6 -4
View File
@@ -60,14 +60,16 @@ jobs:
if: matrix.target == 'x86_64-unknown-linux-musl' if: matrix.target == 'x86_64-unknown-linux-musl'
run: sudo apt-get update && sudo apt-get install -y musl-tools run: sudo apt-get update && sudo apt-get install -y musl-tools
- name: Build Rust backend - name: Build aarch64 Rust backend
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: | run: |
if [[ "${{ matrix.target }}" == "aarch64-unknown-linux-gnu" ]]; then
cargo install cross --force cargo install cross --force
cross build --release --features vendored-openssl --target=${{ matrix.target }} cross build --release --features vendored-openssl --target=${{ matrix.target }}
else
- name: Build Rust backend
if: matrix.target != 'aarch64-unknown-linux-gnu'
run: |
cargo build --release --features vendored-openssl --target=${{ matrix.target }} cargo build --release --features vendored-openssl --target=${{ matrix.target }}
fi
- name: Strip binary (Linux and macOS) - name: Strip binary (Linux and macOS)
if: matrix.os != 'windows-latest' if: matrix.os != 'windows-latest'