2 Commits
Author SHA1 Message Date
melfely 14e59d2ed2 feat: Added Linux Tests, and Cross Builds via Cargo Cross
Crossplatform Linting && Build / Linting (push) Successful in 1m33s
Crossplatform Linting && Build / Build (push) Successful in 55s
These "might" work, going to have to work at it. Actions are strange.
2026-09-09 13:50:02 -05:00
melfely 78d1a65bef :fixes Removed Debian apt call, apparently unreliable in CI/CD 2026-09-09 13:49:23 -05:00
+36 -4
View File
@@ -19,9 +19,6 @@ jobs:
with: with:
components: rustfmt, clippy components: rustfmt, clippy
- name: Update Debian Package List
run: apt update
- name: Install cargo sort - name: Install cargo sort
uses: taiki-e/install-action@v2 uses: taiki-e/install-action@v2
with: with:
@@ -63,6 +60,41 @@ 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:
- name: Checkout Project
uses: actions/checkout@v5
- 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:
name: Test
runs-on: ubuntu-latest
needs: [build, lint]
steps:
- name: Checkout Project
uses: actions/checkout@v5
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
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