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