mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-27 19:02:02 -04:00
CI: Update macOS workflows to macOS 15 runners with Xcode 16.1
This commit is contained in:
23
.github/workflows/analyze-project.yaml
vendored
23
.github/workflows/analyze-project.yaml
vendored
@@ -41,7 +41,7 @@ jobs:
|
||||
|
||||
macos:
|
||||
name: macOS 🍏 (clang-analyze)
|
||||
runs-on: macos-14
|
||||
runs-on: macos-15
|
||||
defaults:
|
||||
run:
|
||||
shell: zsh --no-rcs --errexit --pipefail {0}
|
||||
@@ -51,6 +51,26 @@ jobs:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set Up Environment 🔧
|
||||
id: setup
|
||||
run: |
|
||||
: Set Up Environment 🔧
|
||||
if (( ${+RUNNER_DEBUG} )) setopt XTRACE
|
||||
|
||||
print '::group::Enable Xcode 16.1'
|
||||
sudo xcode-select --switch /Applications/Xcode_16.1.0.app/Contents/Developer
|
||||
print '::endgroup::'
|
||||
|
||||
print '::group::Clean Homebrew Environment'
|
||||
local -a unwanted_formulas=()
|
||||
local -a remove_formulas=()
|
||||
for formula (${unwanted_formulas}) {
|
||||
if [[ -d ${HOMEBREW_PREFIX}/Cellar/${formula} ]] remove_formulas+=(${formula})
|
||||
}
|
||||
|
||||
if (( #remove_formulas )) brew uninstall --ignore-dependencies ${remove_formulas}
|
||||
print '::endgroup::'
|
||||
|
||||
- name: Set Up Code Signing 🔑
|
||||
uses: ./.github/actions/setup-macos-codesigning
|
||||
id: codesign
|
||||
@@ -89,6 +109,7 @@ jobs:
|
||||
|
||||
git fetch origin --no-tags --no-recurse-submodules -q
|
||||
.github/scripts/build-macos ${build_args}
|
||||
|
||||
- name: Compile Analytics Data 📊
|
||||
run: |
|
||||
: Compile Analytics Data 📊
|
||||
|
||||
16
.github/workflows/build-project.yaml
vendored
16
.github/workflows/build-project.yaml
vendored
@@ -59,7 +59,7 @@ jobs:
|
||||
|
||||
macos-build:
|
||||
name: macOS 🍏
|
||||
runs-on: macos-14
|
||||
runs-on: macos-15
|
||||
needs: check-event
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -80,18 +80,18 @@ jobs:
|
||||
: Set Up Environment 🔧
|
||||
if (( ${+RUNNER_DEBUG} )) setopt XTRACE
|
||||
|
||||
print '::group::Enable Xcode 15.4'
|
||||
sudo xcode-select --switch /Applications/Xcode_15.4.app/Contents/Developer
|
||||
print '::group::Enable Xcode 16.1'
|
||||
sudo xcode-select --switch /Applications/Xcode_16.1.0.app/Contents/Developer
|
||||
print '::endgroup::'
|
||||
|
||||
print '::group::Clean Homebrew Environment'
|
||||
local -a to_remove=()
|
||||
|
||||
for formula (curl) {
|
||||
if [[ -d ${HOMEBREW_PREFIX}/opt/${formula} ]] to_remove+=(${formula})
|
||||
local -a unwanted_formulas=()
|
||||
local -a remove_formulas=()
|
||||
for formula (${unwanted_formulas}) {
|
||||
if [[ -d ${HOMEBREW_PREFIX}/Cellar/${formula} ]] remove_formulas+=(${formula})
|
||||
}
|
||||
|
||||
if (( #to_remove )) brew uninstall --ignore-dependencies ${to_remove}
|
||||
if (( #remove_formulas )) brew uninstall --ignore-dependencies ${remove_formulas}
|
||||
print '::endgroup::'
|
||||
|
||||
local -A arch_names=(x86_64 intel arm64 apple)
|
||||
|
||||
2
.github/workflows/check-format.yaml
vendored
2
.github/workflows/check-format.yaml
vendored
@@ -15,7 +15,7 @@ jobs:
|
||||
failCondition: error
|
||||
|
||||
swift-format:
|
||||
runs-on: macos-14
|
||||
runs-on: macos-15
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
||||
4
.github/workflows/dispatch.yaml
vendored
4
.github/workflows/dispatch.yaml
vendored
@@ -39,7 +39,7 @@ jobs:
|
||||
services-validation:
|
||||
name: Validate Services 🕵️
|
||||
if: github.repository_owner == 'obsproject' && inputs.job == 'services'
|
||||
runs-on: macos-14
|
||||
runs-on: macos-15
|
||||
permissions:
|
||||
checks: write
|
||||
contents: write
|
||||
@@ -73,7 +73,7 @@ jobs:
|
||||
steam-upload:
|
||||
name: Upload Steam Builds 🚂
|
||||
if: github.repository_owner == 'obsproject' && inputs.job == 'steam'
|
||||
runs-on: macos-14
|
||||
runs-on: macos-15
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.github/actions/steam-upload
|
||||
|
||||
2
.github/workflows/push.yaml
vendored
2
.github/workflows/push.yaml
vendored
@@ -139,7 +139,7 @@ jobs:
|
||||
create-appcast:
|
||||
name: Create Sparkle Appcast 🎙️
|
||||
if: github.repository_owner == 'obsproject' && github.ref_type == 'tag'
|
||||
runs-on: macos-14
|
||||
runs-on: macos-15
|
||||
needs: build-project
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
10
.github/workflows/scheduled.yaml
vendored
10
.github/workflows/scheduled.yaml
vendored
@@ -12,7 +12,7 @@ jobs:
|
||||
services-availability:
|
||||
name: Check Service Availability 🛜
|
||||
if: github.repository_owner == 'obsproject'
|
||||
runs-on: macos-14
|
||||
runs-on: macos-15
|
||||
permissions:
|
||||
checks: write
|
||||
contents: write
|
||||
@@ -49,7 +49,7 @@ jobs:
|
||||
# each item in the array with the 'actions_caches' key.
|
||||
# First it only selects objects whose 'ref' element has the value
|
||||
# 'refs/heads/master', of those objects only those whose 'key'
|
||||
# value matches the specifies expression, before finally only
|
||||
# value matches the specified expression, before finally only
|
||||
# selecting the 'id' and 'key' elements for a new object.
|
||||
# The final 'join' command combines both elements with a semicolon
|
||||
# into a raw string which can then be parsed directly.
|
||||
@@ -124,7 +124,7 @@ jobs:
|
||||
if [[ "${RUNNER_DEBUG}" ]]; then set -x; fi
|
||||
|
||||
# This 'gh' command retrieves the last 2 runs of the workflow defined
|
||||
# by 'scheduled.yaml' and retrieve only the 'headSha' value of the
|
||||
# by 'scheduled.yaml' and retrieves just the 'headSha' value of the
|
||||
# JSON response payload.
|
||||
#
|
||||
# As this job runs in context of the same workflow, the first element
|
||||
@@ -162,7 +162,7 @@ jobs:
|
||||
name: Upload Steam Builds 🚂
|
||||
needs: [build-project]
|
||||
if: github.repository_owner == 'obsproject'
|
||||
runs-on: macos-14
|
||||
runs-on: macos-15
|
||||
defaults:
|
||||
run:
|
||||
shell: zsh --no-rcs --errexit --pipefail {0}
|
||||
@@ -178,7 +178,7 @@ jobs:
|
||||
if (( ${+RUNNER_DEBUG} )) setopt XTRACE
|
||||
|
||||
# This 'gh' command retrieves the last 2 runs of the workflow defined
|
||||
# by 'scheduled.yaml' and retrieve only the 'headSha' value of the
|
||||
# by 'scheduled.yaml' and retrieves just the 'headSha' value of the
|
||||
# JSON response payload.
|
||||
#
|
||||
# As this job runs in context of the same workflow, the first element
|
||||
|
||||
Reference in New Issue
Block a user