-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚦 Install Vulkan SDK via dmg download
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
1 parent
5e54822
commit ae6b2b1
Showing
2 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,17 +79,44 @@ 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: Cache vulkan-sdk.dmg | ||
uses: actions/cache@v3 | ||
if: runner.os == 'macOS' | ||
id: download-vulkan | ||
with: | ||
path: vulkan-sdk.dmg | ||
key: vulkan-sdk | ||
|
||
- name: Download vulkan-sdk.dmg | ||
shell: bash | ||
if: runner.os == 'macOS' && steps.download-vulkan.outputs.cache-hit != 'true' | ||
run: | | ||
wget https://sdk.lunarg.com/sdk/download/latest/mac/vulkan-sdk.dmg | ||
- name: Install Vulkan SDK | ||
shell: bash | ||
if: runner.os == 'macOS' | ||
run: | | ||
brew update | ||
brew install molten-vk | ||
hdiutil attach vulkan-sdk.dmg -mountpoint vulkan-sdk | ||
export VULKAN_SDK="${HOME}/VulkanSDK" | ||
./vulkan-sdk/InstallVulkan.app/Contents/MacOS/InstallVulkan \ | ||
--root "${VULKAN_SDK}" \ | ||
--accept-licenses \ | ||
--default-answer \ | ||
--confirm-command install | ||
echo VULKAN_SDK="${VULKAN_SDK}/macOS" >> "${GITHUB_ENV}" | ||
echo DYLD_LIBRARY_PATH="$VULKAN_SDK/lib:$DYLD_LIBRARY_PATH" >> "${GITHUB_ENV}" | ||
echo LD_LIBRARY_PATH="$VULKAN_SDK/lib:$LD_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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters