Feat: PR Check (#80)

This commit is contained in:
xkeyC 2024-11-19 20:53:57 +08:00 committed by GitHub
parent ddfe0b37b1
commit db2b7d320d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

34
.github/workflows/pr_check.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: PR Check
on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- '**'
workflow_dispatch:
jobs:
run-rust:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check runner_tools
uses: actions/checkout@v4
with:
repository: StarCitizenToolBox/runner_tools
path: runner_tools
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: "rust"
cache-all-crates: true
- name: PR Check
run: cargo run --manifest-path ./runner_tools/localization/Cargo.toml pr_check --release