@@ -4,29 +4,6 @@ TUIST_REPOSITORY_ROOT="$(
44 cd " $( dirname " ${BASH_SOURCE[0]} " ) /../.." > /dev/null 2>&1
55 pwd -P
66) "
7- TUIST_CACHE_SOCKET_PATH=" ${TUIST_CACHE_SOCKET_PATH:- ${XDG_STATE_HOME:- $HOME / .local/ state} / tuist/ OpenSwiftUIProject_openattributegraph.sock} "
8-
9- tuist_cache_service_is_ready () {
10- [[ -S " $TUIST_CACHE_SOCKET_PATH " ]] || return 1
11-
12- if command -v lsof > /dev/null 2>&1 ; then
13- lsof " $TUIST_CACHE_SOCKET_PATH " > /dev/null 2>&1
14- fi
15- }
16-
17- tuist_wait_for_cache_service () {
18- local attempt
19- for (( attempt = 0 ; attempt < 40 ; attempt++ )) ; do
20- if tuist_cache_service_is_ready; then
21- return 0
22- fi
23- sleep 0.25
24- done
25-
26- echo " Tuist cache service is not listening at $TUIST_CACHE_SOCKET_PATH ." >&2
27- echo " If Tuist reported a different socket, set TUIST_CACHE_SOCKET_PATH to that path." >&2
28- return 69
29- }
307
318tuist_ci_setup () (
329 set -e
@@ -35,8 +12,6 @@ tuist_ci_setup() (
3512 mise trust mise.toml
3613 mise install
3714 mise exec -- tuist auth login
38- mise exec -- tuist setup cache --path " $TUIST_REPOSITORY_ROOT "
39- tuist_wait_for_cache_service
4015)
4116
4217tuist_xcodebuild () (
@@ -60,29 +35,12 @@ tuist_xcodebuild() (
6035 result_bundle_path=" $PWD /$result_bundle_path "
6136 fi
6237
63- local cache_settings=()
64- if tuist_cache_service_is_ready; then
65- cache_settings=(
66- COMPILATION_CACHE_ENABLE_CACHING=YES
67- " COMPILATION_CACHE_REMOTE_SERVICE_PATH=$TUIST_CACHE_SOCKET_PATH "
68- COMPILATION_CACHE_ENABLE_PLUGIN=YES
69- COMPILATION_CACHE_ENABLE_DIAGNOSTIC_REMARKS=YES
70- )
71- elif [[ -n " ${CI:- } " ]]; then
72- echo " Tuist cache service is unavailable at $TUIST_CACHE_SOCKET_PATH ." >&2
73- return 69
74- else
75- echo " Tuist cache service is unavailable; building without compilation caching." >&2
76- echo " Run 'mise exec -- tuist setup cache' to enable it locally." >&2
77- cache_settings=(
78- COMPILATION_CACHE_ENABLE_CACHING=NO
79- COMPILATION_CACHE_ENABLE_PLUGIN=NO
80- )
81- fi
82-
8338 rm -rf " $result_bundle_path "
39+ # Override remote cache settings from existing generated projects.
8440 mise exec -- tuist xcodebuild " $action " \
8541 -resultBundlePath " $result_bundle_path " \
8642 " $@ " \
87- " ${cache_settings[@]} "
43+ COMPILATION_CACHE_ENABLE_CACHING=NO \
44+ COMPILATION_CACHE_REMOTE_SERVICE_PATH= \
45+ COMPILATION_CACHE_ENABLE_PLUGIN=NO
8846)
0 commit comments