diff options
| author | Charles Giessen <charles@lunarg.com> | 2023-06-19 23:19:09 -0600 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2023-06-20 14:23:27 -0600 |
| commit | 75850fe4796ff70873c5c2d5f72ac32cfbc79dd6 (patch) | |
| tree | 488e4f0d48458dacfa159bf74a29de35e0d9a490 | |
| parent | 49c9a1f741c47fe426a82f5cba529a328701cfd5 (diff) | |
| download | usermoji-75850fe4796ff70873c5c2d5f72ac32cfbc79dd6.tar.xz | |
ci: Add tests to linux & mac action runs
Some tests do not need installed drivers, such as MockICD testing, so is
a prime candidate for cloud based CI.
Windows tests are not enabled for the moment, due to not having vulkan-1.dll
available. Fixing this will take much more work due to how the project is
structured.
| -rw-r--r-- | .github/workflows/tools.yml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml index 5da83e50..ca0ec51c 100644 --- a/.github/workflows/tools.yml +++ b/.github/workflows/tools.yml @@ -63,7 +63,7 @@ jobs: with: key: ${{ runner.os }}-${{ matrix.config }}-${{ matrix.cc }}-${{matrix.cube_wsi}} - name: Configure - run: cmake -S. -B build -G "Ninja" -DCMAKE_BUILD_TYPE=${{matrix.config}} -DCUBE_WSI_SELECTION=${{matrix.cube_wsi}} -D UPDATE_DEPS=ON -D INSTALL_ICD=ON + run: cmake -S. -B build -G "Ninja" -DCMAKE_BUILD_TYPE=${{matrix.config}} -DCUBE_WSI_SELECTION=${{matrix.cube_wsi}} -D UPDATE_DEPS=ON -D INSTALL_ICD=ON -D BUILD_TESTS=ON env: CC: ${{matrix.cc}} CXX: ${{matrix.cxx}} @@ -76,6 +76,10 @@ jobs: - name: Install run: cmake --install build/ --prefix build/install + - name: Test + working-directory: ./build + run: ctest --output-on-failure + - name: Verify generated source files run: python scripts/generate_source.py --verify external/${{ matrix.config }}/Vulkan-Headers/build/install/share/vulkan/registry @@ -129,13 +133,17 @@ jobs: run: echo "/usr/lib/ccache:/usr/local/opt/ccache/libexec" >> $GITHUB_PATH - name: Configure - run: cmake -S. -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release -D UPDATE_DEPS=ON -D INSTALL_ICD=ON + run: cmake -S. -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release -D UPDATE_DEPS=ON -D INSTALL_ICD=ON -D BUILD_TESTS=ON env: MACOSX_DEPLOYMENT_TARGET: 10.15 - name: Build run: cmake --build build + - name: Test + working-directory: ./build + run: ctest --output-on-failure + - name: Verify generated source files run: python scripts/generate_source.py --verify external/Release/Vulkan-Headers/build/install/share/vulkan/registry |
