Skip to content

Commit

Permalink
add flatbuffers/protoc check job
Browse files Browse the repository at this point in the history
  • Loading branch information
a10y committed Nov 4, 2024
1 parent fb34a83 commit cb9e461
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,22 @@ jobs:
version: v1.0.0
- name: Rust Bench as test
run: cargo bench --bench '*[!noci]' -- --test

generated-files:
name: "Check generated proto/fbs files are up to date"
runs-on: ubuntu-latest
steps:
- uses: rui314/setup-mold@v1
- uses: actions/checkout@v4
- uses: ./.github/actions/cleanup
- uses: ./.github/actions/setup-rust
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: "regenerate all .fbs/.proto Rust code"
run: |
cargo xtask generate-fbs
cargo xtask generate-proto
- name: "Make sure no files changed after regenerating"
run: |
git status | grep 'working tree clean'

0 comments on commit cb9e461

Please sign in to comment.