Add VulkanSDK setup for CI builds

This commit is contained in:
Wojciech Figat
2022-01-17 11:20:07 +01:00
parent 84f07f8b83
commit 08d449a370
3 changed files with 52 additions and 0 deletions

View File

@@ -1,6 +1,9 @@
name: Build Windows
on: [push, pull_request]
env:
VULKAN_SDK: C:\VulkanSDK\
jobs:
# Editor
@@ -14,6 +17,15 @@ jobs:
run: |
git lfs version
git lfs pull
- name: Setup Vulkan
run: |
$ver = (Invoke-WebRequest -Uri "https://vulkan.lunarg.com/sdk/latest.json" | ConvertFrom-Json).windows
echo Vulkan SDK version $ver
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -Uri "https://sdk.lunarg.com/sdk/download/$ver/windows/VulkanSDK-$ver-Installer.exe" -OutFile VulkanSDK.exe
echo Vulkan SDK downloaded
.\VulkanSDK.exe --root C:\VulkanSDK --accept-licenses --default-answer --confirm-command install
echo Vulkan SDK installed!
- name: Build
run: |
.\Development\Scripts\Windows\CallBuildTool.bat -build -log -arch=x64 -platform=Windows -configuration=Development -buildtargets=FlaxEditor
@@ -29,6 +41,15 @@ jobs:
run: |
git lfs version
git lfs pull
- name: Setup Vulkan
run: |
$ver = (Invoke-WebRequest -Uri "https://vulkan.lunarg.com/sdk/latest.json" | ConvertFrom-Json).windows
echo Vulkan SDK version $ver
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -Uri "https://sdk.lunarg.com/sdk/download/$ver/windows/VulkanSDK-$ver-Installer.exe" -OutFile VulkanSDK.exe
echo Vulkan SDK downloaded
.\VulkanSDK.exe --root C:\VulkanSDK --accept-licenses --default-answer --confirm-command install
echo Vulkan SDK installed!
- name: Build
run: |
.\Development\Scripts\Windows\CallBuildTool.bat -build -log -arch=x64 -platform=Windows -configuration=Release -buildtargets=FlaxGame