Skip to content

Commit

Permalink
Add CI workflow for checking that protos.rs is up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
goffrie committed Feb 12, 2024
1 parent e89f1d6 commit 9d8d810
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,21 @@ jobs:
rustup run nightly cargo run
cd ..
rustup run nightly cargo clippy -p proto_pbtest
gen_gen:
name: Generate pb-jelly-gen/src/protos.rs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup update nightly
- run: rustup component add clippy --toolchain nightly
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: ${{env.PROTOBUF_VER}}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Generate protos
run: |
cd pb-jelly-gen
rustup run nightly sh regen_gen_protos.sh
git diff --exit-code

0 comments on commit 9d8d810

Please sign in to comment.