Skip to content

Commit 4820ec1

Browse files
committed
ci: verify that the openvino-sys bindings have not changed
1 parent 1b2cf57 commit 4820ec1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,16 @@ jobs:
116116
- name: test
117117
run: cargo test -v
118118

119+
# Re-generate the openvino-sys bindings and check if anything has changed. A failure in this step
120+
# indicates that we need to decide wether to commit the changes from `cargo xtask codegen`.
121+
codegen:
122+
name: Generate openvino-sys bindings
123+
runs-on: ubuntu-latest
124+
steps:
125+
- uses: actions/checkout@v2
126+
with:
127+
submodules: recursive
128+
- name: Generate bindings
129+
run: cargo xtask codegen
130+
- name: Verify no changes
131+
run: git diff --ignore-submodules --no-ext-diff --name-only --exit-code

0 commit comments

Comments
 (0)