mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-27 10:52:16 -04:00
CI: Replace ccache with Xcode compile cache
This commit is contained in:
1
.github/scripts/.Brewfile
vendored
1
.github/scripts/.Brewfile
vendored
@@ -1,4 +1,3 @@
|
||||
brew "ccache"
|
||||
brew "cmake"
|
||||
brew "git"
|
||||
brew "jq"
|
||||
|
||||
16
.github/scripts/.build.zsh
vendored
16
.github/scripts/.build.zsh
vendored
@@ -42,7 +42,7 @@ build() {
|
||||
local project_root=${SCRIPT_HOME:A:h:h}
|
||||
|
||||
fpath=(${SCRIPT_HOME}/utils.zsh ${fpath})
|
||||
autoload -Uz log_group log_error log_output check_${host_os} setup_ccache
|
||||
autoload -Uz log_group log_error log_output check_${host_os}
|
||||
|
||||
local -i debug=0
|
||||
|
||||
@@ -98,10 +98,11 @@ build() {
|
||||
set -- ${(@)args}
|
||||
|
||||
check_${host_os}
|
||||
setup_ccache
|
||||
|
||||
if [[ ${host_os} == ubuntu ]] {
|
||||
autoload -Uz setup_ubuntu && setup_ubuntu
|
||||
autoload -Uz setup_ubuntu setup_ccache
|
||||
setup_ccache
|
||||
setup_ubuntu
|
||||
}
|
||||
|
||||
local product_name='obs-studio'
|
||||
@@ -116,7 +117,14 @@ build() {
|
||||
|
||||
case ${target} {
|
||||
macos-*)
|
||||
cmake_args+=(--preset 'macos-ci' -DCMAKE_OSX_ARCHITECTURES:STRING=${target##*-})
|
||||
cmake_args+=(
|
||||
--preset 'macos-ci'
|
||||
-DCMAKE_OSX_ARCHITECTURES:STRING=${target##*-}
|
||||
)
|
||||
|
||||
if (( debug )) {
|
||||
cmake_args+=(CMAKE_XCODE_ATTRIBUTE_COMPILATION_CACHE_ENABLE_DIAGNOSTIC_REMARKS:STRING=YES)
|
||||
}
|
||||
|
||||
typeset -gx NSUnbufferedIO=YES
|
||||
|
||||
|
||||
Reference in New Issue
Block a user