Template
fixes: Test and Cross-Build were indeneted to much
This commit is contained in:
+35
-34
@@ -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
|
|
||||||
uses: zijiren233/cargo-cross@v1
|
|
||||||
with:
|
|
||||||
targets: |
|
|
||||||
aarch64-unknown-linux-musl
|
|
||||||
aarch64-unknown-linux-gnu
|
|
||||||
x86_64-pc-windows-gnu
|
|
||||||
aarch64-apple-darwin
|
|
||||||
|
|
||||||
test:
|
steps:
|
||||||
name: Test
|
- name: Checkout Project
|
||||||
runs-on: ubuntu-latest
|
uses: actions/checkout@v5
|
||||||
needs: [build, lint]
|
|
||||||
|
- name: Crosscompile for aarch64 linux, windows, macos
|
||||||
|
uses: zijiren233/cargo-cross@v1
|
||||||
|
with:
|
||||||
|
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: Setup Rust
|
||||||
- name: Test for Linux x86 (GNU and MUSL)
|
uses: dtolnay/rust-toolchain@stable
|
||||||
run: |
|
with:
|
||||||
cargo test --target x86_64-unknown-linux-gnu --release --locked
|
targets: x86_64-unknown-linux-musl
|
||||||
cargo test --target x86_64-unknown-linux-musl --release --locked
|
|
||||||
|
- 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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user