From db2b7d320d5add0b5950a8eb693c99c3507bf6fb Mon Sep 17 00:00:00 2001 From: xkeyC <39891083+xkeyC@users.noreply.github.com> Date: Tue, 19 Nov 2024 20:53:57 +0800 Subject: [PATCH] Feat: PR Check (#80) --- .github/workflows/pr_check.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/pr_check.yml diff --git a/.github/workflows/pr_check.yml b/.github/workflows/pr_check.yml new file mode 100644 index 0000000..69e09fd --- /dev/null +++ b/.github/workflows/pr_check.yml @@ -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 \ No newline at end of file