From 3b95af1270f8ab120d1fcdd0e9c85d8924956772 Mon Sep 17 00:00:00 2001 From: Melfely Date: Thu, 10 Sep 2026 14:01:42 -0500 Subject: [PATCH] ci: Changed Cross-Build CI to be split amongst multiple workflows --- .gitea/workflows/lint.yml | 44 ++++++++++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml index d3d5389..4d00a26 100644 --- a/.gitea/workflows/lint.yml +++ b/.gitea/workflows/lint.yml @@ -61,8 +61,8 @@ jobs: cargo build --target x86_64-unknown-linux-musl --release --locked - cross_build: - name: Cross-Build + cross_build_linux: + name: Cross-Build-Linux runs-on: ubuntu-latest needs: [lint, build] @@ -79,10 +79,44 @@ jobs: targets: | aarch64-unknown-linux-musl aarch64-unknown-linux-gnu - x86_64-pc-windows-gnu - aarch64-apple-darwin - test: + cross_build_windows: + name: Cross-Build-Windows + runs-on: ubuntu-latest + needs: [lint, build] + + steps: + - name: Checkout Project + uses: actions/checkout@v5 + + - name: Setup Rust + uses: dtolnay/rust-toolchain@stable + + - name: Crosscompile for targets + uses: zijiren233/cargo-cross@v1 + with: + targets: | + x86_64-pc-windows-gnu + + cross_Build_osx: + name: Cross-Build-MacOS + runs-on: ubuntu-latest + needs: [lint, build] + + steps: + - name: Checkout Project + uses: actions/checkout@v5 + + - name: Setup Rust + uses: dtolnay/rust-toolchain@stable + + - name: Crosscompile for targets + uses: zijiren233/cargo-cross@v1 + with: + targets: | + aarch64-apple-darwin + + test_linux: name: Test runs-on: ubuntu-latest needs: [build, lint]