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/cross-check.yml b/.github/workflows/cross-check.yml new file mode 100644 index 0000000..fd2be7f --- /dev/null +++ b/.github/workflows/cross-check.yml @@ -0,0 +1,47 @@ +name: Cross Platform Cargo Check + +on: + workflow_dispatch: +# pull_request: +# push: +# branches: [main, dev] + +permissions: + contents: read + +env: + HUSKY: 0 + +jobs: + cargo-check: + 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 + run: | + cargo check --target ${{ matrix.target }} --workspace --all-features