CI: Add Windows ARM64 to build matrix

This commit is contained in:
PatTheMav
2025-03-12 16:33:00 -04:00
committed by Ryan Foster
parent d6e5ecd88a
commit f165e63831
3 changed files with 20 additions and 8 deletions
+10 -1
View File
@@ -1,6 +1,6 @@
[CmdletBinding()]
param(
[ValidateSet('x64')]
[ValidateSet('x64', 'arm64')]
[string] $Target = 'x64',
[ValidateSet('Debug', 'RelWithDebInfo', 'Release', 'MinSizeRel')]
[string] $Configuration = 'RelWithDebInfo'
@@ -53,6 +53,15 @@ function Build {
Ensure-Location $ProjectRoot
$CmakeArgs = @('--preset', "windows-ci-${Target}")
# Required at the very least until OBS Studio updates to Qt 6.8+, pending review of Qt's build options for
# Windows ARM64.
if ( $Target -eq 'arm64' ) {
$QtDependencyVersion = $BuildSpec.dependencies.qt6.version
$CmakeArgs += @("-DQT_HOST_PATH=${ProjectRoot}\.deps\obs-deps-qt6-${QtDependencyVersion}-x64")
}
$CmakeBuildArgs = @('--build')
$CmakeInstallArgs = @()
+3 -3
View File
@@ -1,6 +1,6 @@
[CmdletBinding()]
param(
[ValidateSet('x64')]
[ValidateSet('x64', 'arm64')]
[string] $Target = 'x64',
[ValidateSet('Debug', 'RelWithDebInfo', 'Release', 'MinSizeRel')]
[string] $Configuration = 'RelWithDebInfo'
@@ -71,8 +71,8 @@ function Package {
cpack @CpackArgs
$Package = Get-ChildItem -filter "obs-studio-*-windows-x64.zip" -File
Move-Item -Path $Package -Destination "${OutputName}-windows-x64.zip"
$Package = Get-ChildItem -filter "obs-studio-*-windows-${Target}.zip" -File
Move-Item -Path $Package -Destination "${OutputName}-windows-${Target}.zip"
Pop-Location -Stack PackageTemp
}