mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-24 20:52:15 +08:00
* ci(workflows): Revert nodejs version to v24.18.1 - Exactly match what was defined in `.tool-versions` * ci(renovate): Prevent 3 build tools from being automatically upgraded - Lock Nodejs, PNPM and Rust version in the repository - Nodejs, PNPM and Rust are infrastructure build tools or package manager for this repo - Human manual-bump is required for consistency and stability - Prevent bumping by Renovate Bot * ci(renovate): Unlock auto updates of 3 build tools - Re-allow Nodejs, PNPM and Rust from being automatically upgrade - Group version bumps together across version lockfiles, GitHub Workflows and Dev Containers Assisted-by: vscode-copilot-chat:gemini-3.7-flash codegraph * chore(deps): Bump 2 build tools to latest version - Bump Nodejs to `v24.20.0` across version lockfiles, GitHub Workflows and Dev Containers - Bump Rust toolchain to `v1.98.0` across version lockfiles, GitHub Workflows and Dev Containers Assisted-by: vscode-copilot-chat:gemini-3.7-flash codegraph
68 lines
1.5 KiB
YAML
68 lines
1.5 KiB
YAML
name: Cross Platform Cargo Check
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
# pull_request:
|
|
# push:
|
|
# branches: [main, dev]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
HUSKY: 0
|
|
|
|
jobs:
|
|
cargo-check:
|
|
# Treat all Rust compiler warnings as errors
|
|
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@v7
|
|
|
|
- name: Install Rust Stable
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
targets: ${{ matrix.target }}
|
|
|
|
- name: Add Rust Target
|
|
run: rustup target add ${{ matrix.target }}
|
|
|
|
- name: Install Node
|
|
uses: actions/setup-node@v7
|
|
with:
|
|
node-version: '24.20.0'
|
|
|
|
- uses: pnpm/action-setup@v6
|
|
name: Install pnpm
|
|
with:
|
|
run_install: false
|
|
|
|
- name: Pnpm install and check
|
|
run: |
|
|
pnpm i
|
|
pnpm run prebuild ${{ matrix.target }}
|
|
|
|
- name: Rust Cache
|
|
uses: Swatinem/rust-cache@v2
|
|
with:
|
|
workspaces: src-tauri
|
|
save-if: false
|
|
|
|
- name: Cargo Check (deny warnings)
|
|
working-directory: src-tauri
|
|
run: |
|
|
cargo check --target ${{ matrix.target }} --workspace --all-features
|