From 80ef730f3eaebaf9f931759f4f59656c089780ab Mon Sep 17 00:00:00 2001 From: The1111mp <31227919+1111mp@users.noreply.github.com> Date: Tue, 7 Apr 2026 21:30:03 +0800 Subject: [PATCH 1/4] ci: align cross-platform cargo check workflow --- .github/renovate.json | 38 ++++++++++++++++++++----------- .github/workflows/ci.yml | 49 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/renovate.json b/.github/renovate.json index 44612bb..345369c 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,9 +1,12 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - - "extends": ["config:recommended", ":disableDependencyDashboard"], - - "labels": ["dependencies"], + "extends": [ + "config:recommended", + ":disableDependencyDashboard" + ], + "labels": [ + "dependencies" + ], "rangeStrategy": "bump", "rebaseWhen": "conflicted", "prConcurrentLimit": 5, @@ -12,27 +15,36 @@ "packageRules": [ { "description": "Group all Rust crates into one PR", - "matchManagers": ["cargo"], + "matchManagers": [ + "cargo" + ], "groupName": "Rust dependencies" }, - { "description": "Automerge patch updates", - "matchUpdateTypes": ["patch"], + "matchUpdateTypes": [ + "patch" + ], "automerge": true, "automergeType": "pr" }, - { "description": "Require manual review for minor and major updates", - "matchUpdateTypes": ["minor", "major"], + "matchUpdateTypes": [ + "minor", + "major" + ], "automerge": false }, - { "description": "Allow Rust dependency updates throughout the week", - "matchManagers": ["cargo"], - "schedule": ["at any time"] + "matchManagers": [ + "cargo" + ], + "schedule": [ + "at any time" + ] } - ] + ], + "ignoreTests": false } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1aeced5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,49 @@ +name: Cross Platform Cargo Check + +on: + workflow_dispatch: + pull_request: + push: + branches: [main, dev] + +permissions: + contents: read + +env: + HUSKY: 0 + +jobs: + cargo-check: + env: + RUSTFLAGS: "-D warnings" + strategy: + fail-fast: false + matrix: + include: + - os: macos-latest + target: aarch64-apple-darwin + - os: windows-latest + target: x86_64-pc-windows-msvc + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + runs-on: ${{ matrix.os }} + steps: + - name: Checkout Repository + uses: actions/checkout@v6 + + - name: Install Rust Stable + uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.target }} + + - name: Add Rust Target + run: rustup target add ${{ matrix.target }} + + - name: Rust Cache + uses: Swatinem/rust-cache@v2 + with: + save-if: false + + - name: Cargo Check (deny warnings) + run: | + cargo check --target ${{ matrix.target }} --workspace --all-features From 75b82597d29e7bbc6188e5b9ef8bfad205547ccc Mon Sep 17 00:00:00 2001 From: The1111mp <31227919+1111mp@users.noreply.github.com> Date: Tue, 7 Apr 2026 21:32:26 +0800 Subject: [PATCH 2/4] ci: rename workflow file to cross-check.yml --- .github/workflows/{ci.yml => cross-check.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{ci.yml => cross-check.yml} (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/cross-check.yml similarity index 100% rename from .github/workflows/ci.yml rename to .github/workflows/cross-check.yml From d4903afd6c8d6fc01e54cef09af456f49510d031 Mon Sep 17 00:00:00 2001 From: The1111mp <31227919+1111mp@users.noreply.github.com> Date: Tue, 7 Apr 2026 21:37:19 +0800 Subject: [PATCH 3/4] ci: stop treating warnings as errors in cargo check workflow --- .github/workflows/cross-check.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/cross-check.yml b/.github/workflows/cross-check.yml index 1aeced5..23d9d69 100644 --- a/.github/workflows/cross-check.yml +++ b/.github/workflows/cross-check.yml @@ -14,8 +14,6 @@ env: jobs: cargo-check: - env: - RUSTFLAGS: "-D warnings" strategy: fail-fast: false matrix: @@ -44,6 +42,6 @@ jobs: with: save-if: false - - name: Cargo Check (deny warnings) + - name: Cargo Check run: | cargo check --target ${{ matrix.target }} --workspace --all-features From 4e1d1880dd6d0a39ac7cad000f76293b84d2bbfa Mon Sep 17 00:00:00 2001 From: The1111mp <31227919+1111mp@users.noreply.github.com> Date: Tue, 7 Apr 2026 21:40:31 +0800 Subject: [PATCH 4/4] ci: restrict cross-check workflow to manual dispatch --- .github/workflows/cross-check.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cross-check.yml b/.github/workflows/cross-check.yml index 23d9d69..fd2be7f 100644 --- a/.github/workflows/cross-check.yml +++ b/.github/workflows/cross-check.yml @@ -2,9 +2,9 @@ name: Cross Platform Cargo Check on: workflow_dispatch: - pull_request: - push: - branches: [main, dev] +# pull_request: +# push: +# branches: [main, dev] permissions: contents: read