From a4ee3cacbb1c7a5104a6895890bbddcb0762fa80 Mon Sep 17 00:00:00 2001 From: Mike Schuchardt Date: Wed, 21 Jul 2021 10:16:15 -0700 Subject: ci: Add verification step for generated source This check ensures that the committed generated source files match the output of the committed generators. We used to have this check on TravisCI, but it must have gotten lost in the transition to GitHub Actions. Change-Id: If6a27994b3bfe8dbd09a962d90cc0c528489bd93 --- .github/workflows/build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5503e578..5a1e6304 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,6 +60,9 @@ jobs: - name: Build the tools 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}} @@ -85,6 +88,9 @@ jobs: - name: Build the tools 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 @@ -107,6 +113,9 @@ jobs: - name: Build the tools run: make -C build + - name: Verify generated source files + run: python scripts/generate_source.py --verify external/Vulkan-Headers/registry + gn: runs-on: ubuntu-18.04 @@ -133,4 +142,4 @@ jobs: if: matrix.config == 'Release' - name: Build the tools - run: ninja -C out/${{matrix.config}} \ No newline at end of file + run: ninja -C out/${{matrix.config}} -- cgit v1.2.3