Skip to content

Commit 77b6feb

Browse files
authored
Add CI job to check auto-generated code is committed
Added a job to verify that auto-generated code is committed after making changes to a corresponding source of truth.
1 parent 6dbf380 commit 77b6feb

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
@@ -10,6 +10,19 @@ concurrency:
1010
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
1111

1212
jobs:
13+
check-codegen-diff:
14+
runs-on: ubuntu-latest
15+
name: "Verify auto-generated code is committed"
16+
container:
17+
image: swift:6.2-noble
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Run auto-generated code checks
21+
run: |
22+
swift run --package-path Utilities WasmKitDevUtils wasmgen
23+
swift run --package-path Utilities WasmKitDevUtils vmgen
24+
[ $(git diff | wc -l) == 0 ] || exit 1
25+
1326
build-macos:
1427
strategy:
1528
matrix:

0 commit comments

Comments
 (0)