Run Xcode select on the Translations and CalVer workflows. (#4224)

* Run Xcode select on the Translations and CalVer workflows.

* Use ci_common.sh for xcode-select instead.
This commit is contained in:
Doug
2025-06-18 16:53:32 +01:00
committed by GitHub
parent 77b923c056
commit 8bc97b6585
4 changed files with 10 additions and 12 deletions

View File

@@ -34,6 +34,8 @@ install_xcode_cloud_brew_dependencies () {
}
setup_github_actions_environment() {
xcode_select_for_github_actions
unset HOMEBREW_NO_INSTALL_FROM_API
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
@@ -44,6 +46,8 @@ setup_github_actions_environment() {
}
setup_github_actions_translations_environment() {
xcode_select_for_github_actions
unset HOMEBREW_NO_INSTALL_FROM_API
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
@@ -52,6 +56,12 @@ setup_github_actions_translations_environment() {
mint install Asana/locheck
}
xcode_select_for_github_actions() {
# While fastlane has its own way of selecting Xcode, that only works inside of fastlane.
# We need to select it globally for other processes like xcresultparser and our custom tools to use the same Xcode version.
sudo xcode-select -s /Applications/Xcode_16.3.app
}
generate_what_to_test_notes() {
if [[ -d "$CI_APP_STORE_SIGNED_APP_PATH" ]]; then
TESTFLIGHT_DIR_PATH=TestFlight