Skip to content

Commit

Permalink
Try to parametrize executors to use the min Xcode version for some jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
cipolleschi committed Sep 22, 2023
1 parent 8c5340f commit ecbe2af
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .circleci/configurations/executors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@ executors:
resource_class: macos.x86.medium.gen2
environment:
- BUILD_FROM_SOURCE: true
reactnativeios-lts:
<<: *defaults
macos:
xcode: '14.1.0'
resource_class: macos.x86.medium.gen2
environment:
- BUILD_FROM_SOURCE: true
13 changes: 11 additions & 2 deletions .circleci/configurations/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ jobs:
# JOBS: Test iOS Template
# -------------------------
test_ios_template:
executor: reactnativeios
parameters:
flavor:
default: "Debug"
Expand Down Expand Up @@ -430,6 +429,11 @@ jobs:
cocoapods_cache_key:
type: string
default: *template_cocoapods_cache_key
executor:
description: The executor to use
default: reactnativeios
type: string
executor: << parameters.executor >>
environment:
- PROJECT_NAME: "iOSTemplateProject"
- HERMES_WS_DIR: *hermes_workspace_root
Expand Down Expand Up @@ -502,7 +506,7 @@ jobs:
# JOBS: Test iOS RNTester
# -------------------------
test_ios_rntester:
executor: reactnativeios

parameters:
jsengine:
default: "Hermes"
Expand All @@ -527,6 +531,11 @@ jobs:
description: whether unit tests should run or not.
default: false
type: boolean
executor:
description: The executor to use
default: reactnativeios
type: string
executor: << parameters.executor >>
steps:
- checkout_code_with_cache
- run_yarn
Expand Down
2 changes: 2 additions & 0 deletions .circleci/configurations/test_workflows/testAll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
ruby_version: "3.2.0"
architecture: "NewArch"
flavor: "Debug"
executor: reactnativeios-lts
- test_ios_template:
requires:
- build_npm_package
Expand Down Expand Up @@ -152,6 +153,7 @@
name: "Test RNTester with Ruby 3.2.0"
ruby_version: "3.2.0"
architecture: "NewArch"
executor: reactnativeios-lts
- test_ios_rntester:
requires:
- build_hermes_macos
Expand Down
2 changes: 2 additions & 0 deletions .circleci/configurations/test_workflows/testIOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
ruby_version: "3.2.0"
architecture: "NewArch"
flavor: "Debug"
executor: reactnativeios-lts
- test_ios_template:
requires:
- build_npm_package
Expand Down Expand Up @@ -143,6 +144,7 @@
name: "Test RNTester with Ruby 3.2.0"
ruby_version: "3.2.0"
architecture: "NewArch"
executor: reactnativeios-lts
- test_ios_rntester:
requires:
- build_hermes_macos
Expand Down

0 comments on commit ecbe2af

Please sign in to comment.