Skip to content

Commit 6a8b50c

Browse files
committed
CI: Update obs-deps to 2025-07-11 & OBS 31.0.4
Fix mac-os SDK detection
1 parent 2c55096 commit 6a8b50c

File tree

7 files changed

+48
-29
lines changed

7 files changed

+48
-29
lines changed

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ PenaltyReturnTypeOnItsOwnLine: 60
8181

8282
PointerAlignment: Right
8383
ReflowComments: false
84+
SkipMacroDefinitionBody: true
8485
SortIncludes: false
8586
SortUsingDeclarations: false
8687
SpaceAfterCStyleCast: false

.github/actions/build-plugin/action.yaml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ inputs:
1616
description: Developer ID for application codesigning (macOS only)
1717
required: false
1818
default: '-'
19+
codesignTeam:
20+
description: Team ID for application codesigning (macOS only)
21+
required: false
22+
default: ''
23+
provisioningProfileUUID:
24+
description: UUID of provisioning profile (macOS only)
25+
required: false
26+
default: ''
1927
workingDirectory:
2028
description: Working directory for packaging
2129
required: false
@@ -31,14 +39,18 @@ runs:
3139
CCACHE_DIR: ${{ inputs.workingDirectory }}/.ccache
3240
CODESIGN_IDENT: ${{ inputs.codesignIdent }}
3341
CODESIGN_TEAM: ${{ inputs.codesignTeam }}
42+
PROVISIONING_PROFILE: ${{ inputs.provisioningProfileUUID }}
3443
run: |
3544
: Run macOS Build
3645
37-
local -a build_args=(--config ${{ inputs.config }})
46+
local -a build_args=(
47+
--config ${{ inputs.config }}
48+
)
3849
if (( ${+RUNNER_DEBUG} )) build_args+=(--debug)
3950
4051
if [[ '${{ inputs.codesign }}' == 'true' ]] build_args+=(--codesign)
4152
53+
git fetch origin --no-tags --no-recurse-submodules -q
4254
.github/scripts/build-macos ${build_args}
4355
4456
- name: Install Dependencies 🛍️
@@ -62,16 +74,18 @@ runs:
6274
: Run Ubuntu Build
6375
6476
local -a build_args=(
65-
--target ubuntu-${{ inputs.target }}
6677
--config ${{ inputs.config }}
78+
--target ubuntu-${{ inputs.target }}
6779
)
6880
if (( ${+RUNNER_DEBUG} )) build_args+=(--debug)
6981
82+
git fetch origin --no-tags --no-recurse-submodules -q
7083
.github/scripts/build-ubuntu ${build_args}
7184
7285
- name: Run Windows Build
7386
if: runner.os == 'Windows'
7487
shell: pwsh
88+
working-directory: ${{ inputs.workingDirectory }}
7589
run: |
7690
# Run Windows Build
7791
if ( $Env:RUNNER_DEBUG -ne $null ) {
@@ -83,10 +97,14 @@ runs:
8397
Configuration = '${{ inputs.config }}'
8498
}
8599
100+
if ( $Env:RUNNER_DEBUG -ne $null ) {
101+
$BuildArgs += @{ Debug = $true }
102+
}
103+
git fetch origin --no-tags --no-recurse-submodules -q
86104
.github/scripts/Build-Windows.ps1 @BuildArgs
87105
88106
- name: Create Summary 📊
89-
if: contains(fromJSON('["Linux", "macOS"]'),runner.os)
107+
if: contains(fromJSON('["Linux", "macOS"]'), runner.os)
90108
shell: zsh --no-rcs --errexit --pipefail {0}
91109
env:
92110
CCACHE_DIR: ${{ inputs.workingDirectory }}/.ccache

.github/actions/run-clang-format/action.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ runs:
3535
echo ::group::Install Dependencies
3636
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
3737
echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH
38-
echo "/home/linuxbrew/.linuxbrew/opt/clang-format@17/bin" >> $GITHUB_PATH
38+
echo "/home/linuxbrew/.linuxbrew/opt/clang-format@19/bin" >> $GITHUB_PATH
3939
brew install --quiet zsh
4040
echo ::endgroup::
4141
@@ -50,11 +50,11 @@ runs:
5050
: Run clang-format 🐉
5151
if (( ${+RUNNER_DEBUG} )) setopt XTRACE
5252
53-
print ::group::Install clang-format-17
54-
brew install --quiet obsproject/tools/clang-format@17
53+
print ::group::Install clang-format-19
54+
brew install --quiet obsproject/tools/clang-format@19
5555
print ::endgroup::
5656
57-
print ::group::Run clang-format-17
57+
print ::group::Run clang-format-19
5858
local -a changes=(${(s:,:)CHANGED_FILES//[\[\]\'\"]/})
5959
./build-aux/run-clang-format --fail-${{ inputs.failCondition }} --check ${changes}
6060
print ::endgroup::

.github/scripts/utils.zsh/check_macos

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ local macos_version=$(sw_vers -productVersion)
44

55
log_group 'Install macOS build requirements'
66
log_info 'Checking macOS version...'
7-
if ! is-at-least 11.0 ${macos_version}; then
8-
log_error "Minimum required macOS version is 11.0, but running on macOS ${macos_version}"
7+
if ! is-at-least 12.0 ${macos_version}; then
8+
log_error "Minimum required macOS version is 12.0, but running on macOS ${macos_version}"
99
return 2
1010
else
1111
log_status "macOS ${macos_version} is recent"

CMakePresets.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{
1818
"name": "macos",
1919
"displayName": "macOS Universal",
20-
"description": "Build for macOS 11.0+ (Universal binary)",
20+
"description": "Build for macOS (Universal binary)",
2121
"inherits": ["template"],
2222
"binaryDir": "${sourceDir}/build_macos",
2323
"condition": {
@@ -28,7 +28,7 @@
2828
"generator": "Xcode",
2929
"warnings": {"dev": true, "deprecated": true},
3030
"cacheVariables": {
31-
"CMAKE_OSX_DEPLOYMENT_TARGET": "11.0",
31+
"CMAKE_OSX_DEPLOYMENT_TARGET": "12.0",
3232
"CMAKE_OSX_ARCHITECTURES": "arm64;x86_64",
3333
"CODESIGN_IDENTITY": "$penv{CODESIGN_IDENT}",
3434
"CODESIGN_TEAM": "$penv{CODESIGN_TEAM}"
@@ -38,7 +38,7 @@
3838
"name": "macos-ci",
3939
"inherits": ["macos"],
4040
"displayName": "macOS Universal CI build",
41-
"description": "Build for macOS 11.0+ (Universal binary) for CI",
41+
"description": "Build for macOS (Universal binary) for CI",
4242
"generator": "Xcode",
4343
"cacheVariables": {
4444
"CMAKE_COMPILE_WARNING_AS_ERROR": true,

build-aux/.run-format.zsh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,24 @@ invoke_formatter() {
3333

3434
case ${formatter} {
3535
clang)
36-
if (( ${+commands[clang-format-17]} )) {
37-
local formatter=clang-format-17
36+
if (( ${+commands[clang-format-19]} )) {
37+
local formatter=clang-format-19
3838
} elif (( ${+commands[clang-format]} )) {
3939
local formatter=clang-format
4040
} else {
41-
log_error "No viable clang-format version found (required 17.0.3)"
41+
log_error "No viable clang-format version found (required 19.1.1)"
4242
exit 2
4343
}
4444

4545
local -a formatter_version=($(${formatter} --version))
4646

47-
if ! is-at-least 17.0.3 ${formatter_version[-1]}; then
48-
log_error "clang-format is not version 17.0.3 or above (found ${formatter_version[-1]}."
47+
if ! is-at-least 19.1.1 ${formatter_version[-1]}; then
48+
log_error "clang-format is not version 19.1.1 or above (found ${formatter_version[-1]}."
4949
exit 2
5050
fi
5151

52-
if ! is-at-least ${formatter_version[-1]} 17.0.3; then
53-
log_error "clang-format is more recent than version 17.0.3 (found ${formatter_version[-1]})."
52+
if ! is-at-least ${formatter_version[-1]} 19.1.1; then
53+
log_error "clang-format is more recent than version 19.1.1 (found ${formatter_version[-1]})."
5454
exit 2
5555
fi
5656

buildspec.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
{
22
"dependencies": {
33
"obs-studio": {
4-
"version": "31.0.0",
4+
"version": "31.0.4",
55
"baseUrl": "https://github.com/obsproject/obs-studio/archive/refs/tags",
66
"label": "OBS sources",
77
"hashes": {
8-
"macos": "a22966ff07aba38833ba57c36c9e0d190d083be5dec5048d0a60cd9e6b997242",
9-
"windows-x64": "e8434dcee06f1702f0a0bbd1489296c77116fc51356835c3af4a6ed21b1e1c74"
8+
"macos": "f0b53f0acd05ac0dc3044bd3700740f9d2b7a13504d55c0107468e84a860742b",
9+
"windows-x64": "8e29030aa9ab75878b46ac3cb1045ad0e3cc3eb92c425a8b22b9b1d7b629dded"
1010
}
1111
},
1212
"prebuilt": {
13-
"version": "2024-09-12",
13+
"version": "2025-07-11",
1414
"baseUrl": "https://github.com/obsproject/obs-deps/releases/download",
1515
"label": "Pre-Built obs-deps",
1616
"hashes": {
17-
"macos": "c857b211ee378772994b632036e1e5befe66b37e85286cb8e3cefc1435d5220a",
18-
"windows-x64": "d4a4f194591766891ad3c0b267deec3c4b85239c8fe557273559927456aeedbb"
17+
"macos": "495687e63383d1a287684b6e2e9bfe246bb8f156fe265926afb1a325af1edd2a",
18+
"windows-x64": "c8c642c1070dc31ce9a0f1e4cef5bb992f4bff4882255788b5da12129e85caa7"
1919
}
2020
},
2121
"qt6": {
22-
"version": "2024-09-12",
22+
"version": "2025-07-11",
2323
"baseUrl": "https://github.com/obsproject/obs-deps/releases/download",
2424
"label": "Pre-Built Qt6",
2525
"hashes": {
26-
"macos": "34a2de6b7f4d4d58fc5a15a4dba49a61d81a4045d0cedfc1a1f08c0dfb8047cf",
27-
"windows-x64": "4d15ce13dbb0a8a2cabcce5ae0da5e80ee589b482a61b2025378465c1da32c4f"
26+
"macos": "d3f5f04b6ea486e032530bdf0187cbda9a54e0a49621a4c8ba984c5023998867",
27+
"windows-x64": "0e76bf0555dd5382838850b748d3dcfab44a1e1058441309ab54e1a65b156d0a"
2828
},
2929
"debugSymbols": {
30-
"windows-x64": "dad2351a5c9cd438168e1ed8fb453a2534532252edb555f1001a5e8eb3f1bbd4"
30+
"windows-x64": "11b7be92cf66a273299b8f3515c07a5cfb61614b59a4e67f7fc5ecba5e2bdf21"
3131
}
3232
}
3333
},

0 commit comments

Comments
 (0)