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 ccb0fc7de0
commit 5f621411b2
4 changed files with 10 additions and 12 deletions
-4
View File
@@ -17,10 +17,6 @@ jobs:
cancel-in-progress: false
steps:
# While fastlane has its own way of selecting Xcode, will only work inside fastlane, so we need to set it globally to allow other actions like xcresultparser to use the same Xcode version.
- name: Select Xcode 16.3
run: sudo xcode-select -s /Applications/Xcode_16.3.app
- uses: actions/checkout@v4
- uses: actions/cache@v4
-4
View File
@@ -25,10 +25,6 @@ jobs:
cancel-in-progress: true
steps:
# While fastlane has its own way of selecting Xcode, will only work inside fastlane, so we need to set it globally to allow other actions like xcresultparser to use the same Xcode version.
- name: Select Xcode 16.3
run: sudo xcode-select -s /Applications/Xcode_16.3.app
- uses: nschloe/action-cached-lfs-checkout@f46300cd8952454b9f0a21a3d133d4bd5684cfc2 #v1.2.3
- uses: actions/cache@v4
-4
View File
@@ -19,10 +19,6 @@ jobs:
cancel-in-progress: true
steps:
# While fastlane has its own way of selecting Xcode, will only work inside fastlane, so we need to set it globally to allow other actions like xcresultparser to use the same Xcode version.
- name: Select Xcode 16.3
run: sudo xcode-select -s /Applications/Xcode_16.3.app
- uses: nschloe/action-cached-lfs-checkout@f46300cd8952454b9f0a21a3d133d4bd5684cfc2 #v1.2.3
- uses: actions/cache@v4
+10
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