Skip to content

Commit

Permalink
setup vulkan sdk path
Browse files Browse the repository at this point in the history
  • Loading branch information
Inori committed Jun 26, 2023
1 parent a3a230b commit 34e2a26
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
path: "${{env.VULKAN_SDK_PATH}}"
key: key-vulkan-sdk

- name: Setup Vulkan SDK
- name: Install Vulkan SDK
if: ${{steps.cache-vulkan-sdk.outputs.cache-hit != 'true'}}
run: |
Invoke-WebRequest -Uri "https://sdk.lunarg.com/sdk/download/1.3.250.0/windows/VulkanSDK-1.3.250.0-Installer.exe" -OutFile VulkanSDK.exe
Expand All @@ -50,7 +50,7 @@ jobs:
path: "${{env.LLVM_PATH}}"
key: key-llvm

- name: Setup LLVM
- name: Install LLVM
if: ${{steps.cache-llvm.outputs.cache-hit != 'true'}}
run: |
Invoke-WebRequest -Uri "https://github.com/llvm/llvm-project/releases/download/llvmorg-16.0.6/LLVM-16.0.6-win64.exe" -OutFile LLVM.exe
Expand Down Expand Up @@ -80,10 +80,18 @@ jobs:
Set-Content -Path .\Directory.build.props -Value "<Project>`n <PropertyGroup>`n <LLVMInstallDir>${{env.LLVM_PATH}}</LLVMInstallDir>`n <LLVMToolsVersion>16.0.6</LLVMToolsVersion>`n </PropertyGroup>`n</Project>"
- name: Setup Vulkan SDK Path
run: |
$env:VULKAN_SDK = "${{env.VULKAN_SDK_PATH}}\\1.3.250.0"
$env:VK_SDK_PATH = $env:VULKAN_SDK
$env:Path = "$env:VULKAN_SDK\\Bin;" + $env:Path

- name: Test glslc
working-directory: ${{env.GITHUB_WORKSPACE}}
run: Write-Host $Env:PATH;dir $Env:VULKAN_SDK\\bin;glslc -mfmt=num -o out.h "Graphics\\Sce\\Shaders\\sce_present_frag.frag"


- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
Expand Down

0 comments on commit 34e2a26

Please sign in to comment.