Feature/build with library #130
Workflow file for this run
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
name: Windows CI | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: | |
- main | |
- 'releases/**' | |
paths: | |
- '.github/workflows/windows.yml' | |
- 'src/**' | |
- 'assets/shaders/**' | |
- '*.sh' | |
- '*.bat' | |
- '**/CMakeLists.txt' | |
jobs: | |
build: | |
runs-on: windows-2022 | |
env: | |
SDK_VERSION: 1.3.280.0 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download Vulkan SDK | |
run: Invoke-WebRequest "https://sdk.lunarg.com/sdk/download/${env:SDK_VERSION}/windows/vulkan_sdk.exe?Human=true" -OutFile vulkan_sdk.exe -v | |
- name: Install Vulkan SDK | |
run: .\vulkan_sdk.exe --accept-licenses --default-answer --confirm-command install | |
shell: cmd | |
- name: Restore cached Primes | |
id: cache-primes-restore | |
uses: actions/cache/restore@v4 | |
with: | |
path: | | |
build/vcpkg.windows | |
key: ${{ runner.os }}-primes | |
- name: Compile vcpkg dependencies | |
run: | | |
set VULKAN_SDK=C:\VulkanSDK\%SDK_VERSION% | |
vcpkg_windows.bat | |
shell: cmd | |
- name: Save Primes | |
id: cache-primes-save | |
uses: actions/cache/save@v4 | |
with: | |
path: | | |
build/vcpkg.windows | |
key: ${{ steps.cache-primes-restore.outputs.cache-primary-key }} | |
- name: Setup MSBuild | |
uses: microsoft/setup-msbuild@v2 | |
- name: Compile gkNextRenderer | |
run: | | |
set VULKAN_SDK=C:\VulkanSDK\%SDK_VERSION% | |
build_windows.bat | |
shell: cmd |