chore: ci for test

This commit is contained in:
kaichaosun 2026-01-06 15:49:27 +08:00
parent 403029a541
commit fb4fd1c84a
No known key found for this signature in database
GPG Key ID: 223E0F992F4F03BF

33
.github/workflows/rust.yaml vendored Normal file
View File

@ -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