fix: Test and Cross-Build were indeneted to much

This commit is contained in:
2026-09-10 13:02:24 -05:00
parent c88da52222
commit 4a915b424d
+31 -30
View File
@@ -60,41 +60,42 @@ jobs:
cargo build --target x86_64-unknown-linux-gnu --release --locked cargo build --target x86_64-unknown-linux-gnu --release --locked
cargo build --target x86_64-unknown-linux-musl --release --locked cargo build --target x86_64-unknown-linux-musl --release --locked
cross_build:
name: Cross-Build
runs-on: ubuntu-latest
needs: [lint, build]
steps: cross_build:
- name: Checkout Project name: Cross-Build
uses: actions/checkout@v5 runs-on: ubuntu-latest
needs: [lint, build]
- name: Crosscompile for aarch64 linux, windows, macos steps:
uses: zijiren233/cargo-cross@v1 - name: Checkout Project
with: uses: actions/checkout@v5
targets: |
aarch64-unknown-linux-musl
aarch64-unknown-linux-gnu
x86_64-pc-windows-gnu
aarch64-apple-darwin
test: - name: Crosscompile for aarch64 linux, windows, macos
name: Test uses: zijiren233/cargo-cross@v1
runs-on: ubuntu-latest with:
needs: [build, lint] targets: |
aarch64-unknown-linux-musl
aarch64-unknown-linux-gnu
x86_64-pc-windows-gnu
aarch64-apple-darwin
steps: test:
- name: Checkout Project name: Test
uses: actions/checkout@v5 runs-on: ubuntu-latest
needs: [build, lint]
- name: Setup Rust steps:
uses: dtolnay/rust-toolchain@stable - name: Checkout Project
with: uses: actions/checkout@v5
targets: x86_64-unknown-linux-musl
- name: Test for Linux x86 (GNU and MUSL) - name: Setup Rust
run: | uses: dtolnay/rust-toolchain@stable
cargo test --target x86_64-unknown-linux-gnu --release --locked with:
cargo test --target x86_64-unknown-linux-musl --release --locked targets: x86_64-unknown-linux-musl
- name: Test for Linux x86 (GNU and MUSL)
run: |
cargo test --target x86_64-unknown-linux-gnu --release --locked
cargo test --target x86_64-unknown-linux-musl --release --locked