From cb9e46141cece0d9ad6b6e42ca6ba397713b3448 Mon Sep 17 00:00:00 2001 From: Andrew Duffy Date: Mon, 4 Nov 2024 08:51:33 -0500 Subject: [PATCH] add flatbuffers/protoc check job --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f87cb1639c..da29d1c8da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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' +