mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
CI: Add Windows ARM64 to build matrix
This commit is contained in:
@@ -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 = @()
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user