From 5f7d90b0ec323f03fd2408f758489dd1d35fcf11 Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Sun, 12 Jan 2025 20:57:53 +0100 Subject: [PATCH] fixing CI --- .github/workflows/msys2-build.yml | 9 +++++++++ .github/workflows/windows-build.yml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/.github/workflows/msys2-build.yml b/.github/workflows/msys2-build.yml index 0297cc6..3507c5e 100644 --- a/.github/workflows/msys2-build.yml +++ b/.github/workflows/msys2-build.yml @@ -36,6 +36,8 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - uses: NcStudios/VulkanCI@v1.0 + # Setup MSYS2 - uses: msys2/setup-msys2@v2 with: @@ -87,3 +89,10 @@ jobs: # Build the engine - name: Build Pulse run: xmake --yes + + # Test the engine + - name: Build Pulse + run: | + xmake config --vulkan-tests=y --yes + xmake build --yes VulkanUnitTests + xmake run --yes VulkanUnitTests diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index 237659d..bec073d 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -31,6 +31,8 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - uses: NcStudios/VulkanCI@v1.0 + # Force xmake to a specific folder (for cache) - name: Set xmake env run: echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/xmake-global" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append @@ -82,3 +84,10 @@ jobs: # Build the engine - name: Build Pulse run: xmake --yes + + # Test the engine + - name: Build Pulse + run: | + xmake config --vulkan-tests=y --yes + xmake build --yes VulkanUnitTests + xmake run --yes VulkanUnitTests