From 14e59d2ed2dd3b120c627beaec8b9bb7e0b1b73e Mon Sep 17 00:00:00 2001 From: Melfely Date: Wed, 9 Sep 2026 13:50:02 -0500 Subject: [PATCH] feat: Added Linux Tests, and Cross Builds via Cargo Cross These "might" work, going to have to work at it. Actions are strange. --- .gitea/workflows/lint.yml | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml index 9e176e4..175bc40 100644 --- a/.gitea/workflows/lint.yml +++ b/.gitea/workflows/lint.yml @@ -60,6 +60,41 @@ jobs: cargo build --target x86_64-unknown-linux-gnu --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 + +