Skip to content

Commit

Permalink
Merge pull request #604 from novelrt/misc/bump-vulkan-version-in-ci
Browse files Browse the repository at this point in the history
Update macOS build to use newer vulkan
  • Loading branch information
RubyNova authored Feb 13, 2025
2 parents 5ad1ba6 + ca5294e commit 9032dd4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build-system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
matrix:
configuration: [Debug, Release]
os: [windows-latest, windows-2019, ubuntu-latest, macos-13, macos-14]
vulkanVersion: [1.3.231.1]
vulkanVersion: [1.3.290.0]
include:
- os: ubuntu-latest
container: novelrt/novelrt-build:latest
Expand All @@ -43,15 +43,14 @@ jobs:
id: cache-vulkan-macOS
uses: actions/cache@v4
with:
path: $GITHUB_WORKSPACE/VulkanSDK
key: ${{ runner.os }}-vulkansdk-${{ matrix.vulkanVersion }}-${{ hashFiles('**/mvk_vulkan.h') }}
restore-keys: |
${{ runner.os }}-vulkansdk-${{ matrix.vulkanVersion}}-
path: ${{ github.workspace }}/VulkanSDK
key: ${{ runner.os }}-vulkansdk-${{ matrix.vulkanVersion }}-${{ hashFiles('${{ github.workspace}}/VulkanSDK/macOS/lib/libMoltenVK.dylib') }}
restore-keys: ${{ runner.os }}-vulkansdk-${{ matrix.vulkanVersion }}-

- name: Install Vulkan SDK (macOS)
if: "contains(matrix.os, 'macos') && steps.cache-vulkan-macOS.outputs.cache-hit != 'true'"
id: install-vulkan-macOS
run: scripts/ci-apple-installVulkanSDK.sh ${{ matrix.vulkanVersion }} $GITHUB_WORKSPACE/VulkanSDK
run: scripts/ci-apple-installVulkanSDK.sh ${{ matrix.vulkanVersion }} ${{ github.workspace }}/VulkanSDK

- name: Install Vulkan SDK (Windows)
uses: humbletim/[email protected]
Expand Down
12 changes: 8 additions & 4 deletions scripts/ci-apple-installVulkanSDK.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,19 @@ else
echo "Could not find libvulkan.dylib!"
exit -1
fi
if test -f $sdk_path/$version/MoltenVK/dylib/macOS/libMoltenVK.dylib; then
if test -f $sdk_path/$version/macOS/lib/libMoltenVK.dylib; then
echo "Found MoltenVK!"
else
echo "Could not find MoltenVK!"
exit -1
if test -f $sdk_path/$version/MoltenVK/dylib/macOS/libMoltenVK.dylib; then
echo "Found MoltenVK in legacy path!"
else
echo "Could not find MoltenVK!"
exit -1
fi
fi
else
echo "Could not download Vulkan SDK! Check curl output for more information."
exit -1
fi
fi
fi
fi

0 comments on commit 9032dd4

Please sign in to comment.