From 75850fe4796ff70873c5c2d5f72ac32cfbc79dd6 Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Mon, 19 Jun 2023 23:19:09 -0600 Subject: 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. --- .github/workflows/tools.yml | 12 ++++++++++-- 1 file 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 -- cgit v1.2.3