Pin llvmpipe version, expand test matrix with a single enableGPU target

This commit is contained in:
Kirill Artemov 2025-05-17 16:05:43 +02:00
parent 109ee86310
commit 439bc78790
3 changed files with 12 additions and 4 deletions

View File

@ -26,6 +26,12 @@ jobs:
- StandaloneWindows64 # Build a Windows 64-bit standalone.
- WSAPlayer # Build a UWP App
- tvOS # Build an Apple TV XCode project
include:
# Additionally test enableGPU build for a standalone windows target
- projectPath: test-project
unityVersion: 2023.2.2f1
targetPlatform: StandaloneWindows64
enableGPU: true
steps:
###########################

View File

@ -13,8 +13,10 @@ Get-Process -Name regsvr32 | ForEach-Object { Stop-Process -Id $_.Id -Force }
# Setup Git Credentials
. "c:\steps\set_gitcredential.ps1"
# Install LLVMpipe software graphics driver
. "c:\steps\install_llvmpipe.ps1"
if ($env:ENABLE_GPU -ne "true") {
# Install LLVMpipe software graphics driver
. "c:\steps\install_llvmpipe.ps1"
}
# Activate Unity
if ($env:SKIP_ACTIVATION -ne "true") {

View File

@ -6,8 +6,8 @@ $Private:destinationPath = "$Env:UNITY_PATH\Editor\"
$LLVMPIPE_INSTALLED = "false"
try {
# Get the latest release info from GitHub API
$releaseUrl = "https://api.github.com/repos/$repo/releases/latest"
# Get the 25.1.0 release info from GitHub API (version fixed to decrease probability of breakage)
$releaseUrl = "https://api.github.com/repos/$repo/releases/25.1.0"
$release = Invoke-RestMethod -Uri $releaseUrl -Headers @{ "User-Agent" = "PowerShell" }
# Get the download URL for the zip asset