Skip to content

Commit

Permalink
🚦 Install Vulkan SDK via dmg download
Browse files Browse the repository at this point in the history
Builds are failing for macOS due to not finding `-lvulkan`; this
now downloads the Vulkan SDK installer manually from Lunarg so that
the proper binaries can be installed.
  • Loading branch information
bitwizeshift committed Dec 11, 2023
1 parent 5e54822 commit 772c352
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/actions/prepare-runner/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,30 @@ runs:

- name: Install Vulkan SDK
uses: humbletim/[email protected]
if: runner.os == 'Linux' || runner.os == 'Windows'
with:
vulkan-query-version: 1.3.204.0
vulkan-components: Vulkan-Headers, Vulkan-Loader
vulkan-use-cache: true

- name: Install MoltenVK
- name: Install Vulkan SDK
shell: bash
if: runner.os == 'macOS'
run: |
brew update
brew install molten-vk
wget https://sdk.lunarg.com/sdk/download/latest/mac/vulkan-sdk.dmg
hdiutil attach vulkan-sdk.dmg -mountpoint vulkan-sdk
export VULKAN_SDK="${HOME}/VulkanSDK"
sudo ./vulkan-sdk/InstallVulkan.app/Contents/MacOS/InstallVulkan \
--root "${VULKAN_SDK}" \
--accept-licenses \
--default-answer \
--confirm-command install
echo VULKAN_SDK="${VULKAN_SDK}" >> "${GITHUB_ENV}"
echo DYLD_LIBRARY_PATH="$VULKAN_SDK/lib:$DYLD_LIBRARY_PATH" >> "${GITHUB_ENV}"
echo VK_ICD_FILENAMES="$VULKAN_SDK/etc/vulkan/icd.d/MoltenVK_icd.json" >> "${GITHUB_ENV}"
echo VK_LAYER_PATH="$VULKAN_SDK/share/vulkan/explicit_layer.d" >> "${GITHUB_ENV}"
echo "$VULKAN_SDK/bin" >> "${GITHUB_PATH}"
- name: Checkout 3rd-party
uses: ./.github/actions/checkout

0 comments on commit 772c352

Please sign in to comment.