Skip to content

Commit

Permalink
Install Vulkan SDK in Windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralith committed Jul 29, 2024
1 parent 07c5893 commit 2fa0788
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,14 @@ jobs:
runs-on: windows-latest
env:
VULKAN_VERSION: "1.3.231.1"
VULKAN_SDK: "C:/VulkanSDK/1.3.231.1"
steps:
- uses: actions/checkout@v3
with:
lfs: true
- name: Cache Vulkan SDK
id: cache-vulkan
uses: actions/cache@v4
with:
path: ${{ env.VULKAN_SDK }}
key: vulkan-${{ env.VULKAN_VERSION }}
- name: Install Vulkan SDK
if: steps.cache-vulkan.outputs.cache-hit != 'true'
run: |
Invoke-WebRequest -Uri "https://sdk.lunarg.com/sdk/download/${{ env.VULKAN_VERSION }}/windows/VulkanSDK-${{ env.VULKAN_VERSION }}-Installer.exe" -OutFile vulkan.exe
7z x -aoa vulkan.exe "-o$env:VULKAN_SDK" Lib share/vulkan/registry/vk.xml
vulkan.exe /S
- uses: actions-rs/toolchain@v1
with:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,21 @@ jobs:

runs-on: ${{ matrix.os }}

env:
VULKAN_VERSION: "1.3.231.1"

steps:
- name: Install shaderc
if: matrix.os == 'ubuntu-latest'
run: |
wget -nv -r -nd -A install.tgz 'https://storage.googleapis.com/shaderc/badges/build_link_linux_clang_release.html'
tar xf install.tgz
export SHADERC_LIB_DIR="$PWD/install/lib"
- name: Install Ninja
- name: Install Vulkan SDK
if: matrix.os == 'windows-latest'
run: choco install ninja
run: |
Invoke-WebRequest -Uri "https://sdk.lunarg.com/sdk/download/${{ env.VULKAN_VERSION }}/windows/VulkanSDK-${{ env.VULKAN_VERSION }}-Installer.exe" -OutFile vulkan.exe
./vulkan.exe --accept-licenses --default-answer --confirm-command install
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
Expand Down

0 comments on commit 2fa0788

Please sign in to comment.