@@ -3,14 +3,10 @@ name: testWindows
33on : [push, pull_request]
44
55env :
6- # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
76 BUILD_TYPE : Release
87
98jobs :
109 build :
11- # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
12- # You can convert this to a matrix build if you need cross-platform coverage.
13- # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
1410 runs-on : windows-latest
1511
1612 steps :
@@ -28,15 +24,22 @@ jobs:
2824 vulkan-components : Vulkan-Headers, Vulkan-Loader, SPIRV-Cross, SPIRV-Tools, Glslang
2925 vulkan-use-cache : true
3026
27+ - name : Download glslangValidator
28+ run : curl -L -o glslang.zip https://github.com/KhronosGroup/glslang/releases/download/main-tot/glslang-master-windows-Release.zip
29+
30+ - name : Extract glslangValidator
31+ shell : powershell
32+ run : Expand-Archive -Path glslang.zip -DestinationPath ${{github.workspace}}/glslang
33+
34+ - name : Add glslangValidator to PATH
35+ run : echo "${{github.workspace}}/glslang/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
36+
3137 - name : Configure CMake
32- # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
33- # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
3438 run : cmake -B ${{github.workspace}}/build -DWERROR=YES -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
3539
3640 - name : Build
37- # Build your program with the given configuration
3841 run : |
39- $env:PATH += "; D:\a\rayx\rayx\vcpkg\installed\x64-windows\bin"
42+ echo " D:\a\rayx\rayx\vcpkg\installed\x64-windows\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
4043 cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
4144
4245 - name : Test
0 commit comments