Skip to content

Commit 7d136aa

Browse files
Copilotdontpanic92
andcommitted
Install Vulkan SDK to default system location for PATH availability
Co-authored-by: dontpanic92 <1056013+dontpanic92@users.noreply.github.com>
1 parent 0c3c9f8 commit 7d136aa

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

.github/workflows/ci-macos.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ jobs:
3434
# The zip extracts to InstallVulkan.app
3535
if [ -d "/tmp/InstallVulkan.app" ]; then
3636
echo "Using InstallVulkan.app installer..."
37-
sudo /tmp/InstallVulkan.app/Contents/MacOS/InstallVulkan --root $HOME/VulkanSDK/${VULKAN_SDK_VERSION} --accept-licenses --default-answer --confirm-command install
38-
echo "VULKAN_SDK=$HOME/VulkanSDK/${VULKAN_SDK_VERSION}" >> $GITHUB_ENV
39-
echo "$HOME/VulkanSDK/${VULKAN_SDK_VERSION}/bin" >> $GITHUB_PATH
37+
# Install to system location (default) instead of custom --root
38+
sudo /tmp/InstallVulkan.app/Contents/MacOS/InstallVulkan --accept-licenses --default-answer --confirm-command install
4039
rm -rf /tmp/InstallVulkan.app
4140
else
4241
echo "Error: Could not find Vulkan SDK installer"
@@ -55,13 +54,4 @@ jobs:
5554
vcpkg install --triplet=arm64-osx
5655
vcpkg integrate install
5756
- name: Build
58-
run: |
59-
export VULKAN_SDK="$HOME/VulkanSDK/${VULKAN_SDK_VERSION}"
60-
export PATH="$HOME/VulkanSDK/${VULKAN_SDK_VERSION}/bin:$PATH"
61-
echo "Checking Vulkan SDK installation:"
62-
ls -la "$HOME/VulkanSDK/" || echo "VulkanSDK directory not found"
63-
ls -la "$HOME/VulkanSDK/${VULKAN_SDK_VERSION}/" || echo "Version directory not found"
64-
ls -la "$HOME/VulkanSDK/${VULKAN_SDK_VERSION}/bin/" || echo "bin directory not found"
65-
which glslc || echo "glslc not found in PATH"
66-
echo "PATH: $PATH"
67-
cargo build --workspace --release --verbose
57+
run: cargo build --workspace --release --verbose

0 commit comments

Comments
 (0)