ci: Add verification of generated source code
authorCharles Giessen <charles@lunarg.com>
Mon, 19 Apr 2021 21:08:26 +0000 (15:08 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Tue, 20 Apr 2021 09:39:46 +0000 (03:39 -0600)
The transition from travis to github CI dropped the check for verifying if the
source code generator was updated if it needed to for the changes.

Change-Id: I53fabfe14f42fe1c9899b2938f5e7b8073362954

.github/workflows/build.yml

index 2e3ece71b54278a6c5410eb94a739aff0550846e..635511e5fe7aa0741ce0b3809aa058c89e38fb02 100644 (file)
@@ -61,6 +61,9 @@ jobs:
             - name: Build the loader
               run: make -C build
 
+            - name: Verify generated source files
+              run: python scripts/generate_source.py --verify external/Vulkan-Headers/registry
+
     windows:
         runs-on: ${{matrix.os}}
 
@@ -97,6 +100,9 @@ jobs:
             - name: Build the loader
               run: cmake --build ./build --config ${{matrix.config}}
 
+            - name: Verify generated source files
+              run: python scripts/generate_source.py --verify external/Vulkan-Headers/registry
+
     mac:
         runs-on: macos-latest