From 6a168c036098181d613506e670b4b4b5a6465c91 Mon Sep 17 00:00:00 2001 From: Oleh Kuznetsov Date: Sat, 29 Aug 2026 15:41:33 +0100 Subject: [PATCH] ci: Pre-start sccache server and fix Vulkan SDK path on macOS Pre-start the sccache server explicitly before running the build script on macOS runners. When sccache auto-spawns on the first compiler call during CMake test program compilation, cold starts under CPU load can exceed the connection timeout ("Timed out waiting for server startup"). Also update the Vulkan SDK installation root path in the test step from 1.3.304.0 to 1.4.304.0 to match the downloaded archive version. --- .github/workflows/ci_build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml index e58f462e9a..8ca378b102 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yml @@ -259,7 +259,9 @@ jobs: run: .github/workflows/scripts/build-dependencies-macos.sh - name: Run build script run: | + sccache --start-server python3 scripts/build.py --skip-check-code-style --config ${{ matrix.config.type }} --cmake-extra "CMAKE_PREFIX_PATH=$HOME/deps" --cmake-extra CMAKE_OSX_DEPLOYMENT_TARGET=13.3 --parallel 0 --test-apps + sccache --show-stats env: SCCACHE_GHA_ENABLED: on SCCACHE_CACHE_MULTIARCH: on @@ -273,7 +275,7 @@ jobs: cd $WORKING_PATH curl https://sdk.lunarg.com/sdk/download/1.4.304.0/mac/vulkansdk-macos-1.4.304.0.zip -o ./vulkan-sdk.zip unzip ./vulkan-sdk.zip -d ./vulkan-sdk - sudo ./vulkan-sdk/InstallVulkan.app/Contents/MacOS/InstallVulkan --root $(pwd)/VulkanSDK/1.3.304.0 --accept-licenses --default-answer --confirm-command install + sudo ./vulkan-sdk/InstallVulkan.app/Contents/MacOS/InstallVulkan --root $(pwd)/VulkanSDK/1.4.304.0 --accept-licenses --default-answer --confirm-command install sudo dscl . -create /Users/test sudo dscl . append /Groups/staff GroupMembership test sudo dscl . -create /Users/test UserShell /bin/bash @@ -284,7 +286,7 @@ jobs: sudo mkdir -p /Users/test sudo chown -R test:staff /Users/test sudo chmod -R g+w . - sudo su - test -c "cd $WORKING_PATH && VULKAN_LIBRARY_PATH=$(pwd)/VulkanSDK/1.3.304.0/macOS/lib/libvulkan.dylib ./run-tests_macos.sh" + sudo su - test -c "cd $WORKING_PATH && VULKAN_LIBRARY_PATH=$(pwd)/VulkanSDK/1.4.304.0/macOS/lib/libvulkan.dylib ./run-tests_macos.sh" - name: Upload test failure artifacts uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 if: ${{ failure() && steps.test_apps.conclusion == 'failure' }}