From fb4fd1c84a3d0788a487a66d5da3fb508c930bc3 Mon Sep 17 00:00:00 2001 From: kaichaosun Date: Tue, 6 Jan 2026 15:49:27 +0800 Subject: [PATCH] chore: ci for test --- .github/workflows/rust.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/rust.yaml diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml new file mode 100644 index 0000000..784a55f --- /dev/null +++ b/.github/workflows/rust.yaml @@ -0,0 +1,33 @@ +name: Rust + +on: + pull_request: + branches: + - main + paths-ignore: + - "**README.md" + - ".gitignore" + - "LICENSE" + +jobs: + test: + name: Cargo Check + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + - name: Check Rust bindings + working-directory: gen/rust + run: cargo check --all-targets + + - name: Test Rust bindings + working-directory: gen/rust + run: cargo test