Skip to content

Commit

Permalink
Set vulkan library path inside su
Browse files Browse the repository at this point in the history
  • Loading branch information
beau-lunarg committed Jan 23, 2025
1 parent 713e4c5 commit 1bfb7e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ jobs:
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
VULKAN_LIBRARY_PATH=$(pwd)/VulkanSDK/1.3.304.0/macOS/lib/libvulkan.dylib
sudo dscl . -create /Users/test
sudo dscl . append /Groups/staff GroupMembership test
sudo dscl . -create /Users/test UserShell /bin/bash
Expand All @@ -225,7 +224,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 && ./run-tests_macos.sh"
sudo su - test -c "cd $WORKING_PATH && VULKAN_LIBRARY_PATH=$(pwd)/VulkanSDK/1.3.304.0/macOS/lib/libvulkan.dylib ./run-tests_macos.sh"
- name: Upload test failure artifacts
uses: actions/upload-artifact@v4
if: ${{ failure() && steps.test_apps.conclusion == 'failure' }}
Expand Down

0 comments on commit 1bfb7e5

Please sign in to comment.