From eaf7e949264794956b1432347b35e1bd1b0df71b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Kwas=CC=81niewski?= Date: Tue, 12 Dec 2023 10:50:21 +0100 Subject: [PATCH] feat: add cocoapods cache --- .circleci/configurations/jobs.yml | 46 ++++++++++--------- .../test_workflows/testVisionOS.yml | 10 ---- 2 files changed, 24 insertions(+), 32 deletions(-) diff --git a/.circleci/configurations/jobs.yml b/.circleci/configurations/jobs.yml index aee41e2b2f745b..48f125d0791d5a 100644 --- a/.circleci/configurations/jobs.yml +++ b/.circleci/configurations/jobs.yml @@ -626,32 +626,34 @@ jobs: - run_yarn - setup_ruby: ruby_version: << parameters.ruby_version >> - - run: - name: "Install pods" - command: | - if [[ << parameters.architecture >> == "NewArch" ]]; then - export RCT_NEW_ARCH_ENABLED=1 - fi + - with_xcodebuild_cache: + steps: + - run: + name: "Install pods" + command: | + if [[ << parameters.architecture >> == "NewArch" ]]; then + export RCT_NEW_ARCH_ENABLED=1 + fi - if [[ << parameters.jsengine >> == "JSC" ]]; then - export USE_HERMES=0 - fi + if [[ << parameters.jsengine >> == "JSC" ]]; then + export USE_HERMES=0 + fi - if [[ << parameters.use_frameworks >> == "DynamicFrameworks" ]]; then - export USE_FRAMEWORKS=dynamic - fi + if [[ << parameters.use_frameworks >> == "DynamicFrameworks" ]]; then + export USE_FRAMEWORKS=dynamic + fi - cd packages/rn-tester + cd packages/rn-tester - bundle install - bundle exec pod install - - run: - name: "Build rn-tester" - command: | - xcodebuild build \ - -workspace packages/rn-tester/RNTesterPods.xcworkspace \ - -scheme RNTester-visionOS \ - -sdk xrsimulator + bundle install + bundle exec pod install + - run: + name: "Build rn-tester" + command: | + xcodebuild build \ + -workspace packages/rn-tester/RNTesterPods.xcworkspace \ + -scheme RNTester-visionOS \ + -sdk xrsimulator # ------------------------- # JOBS: Windows diff --git a/.circleci/configurations/test_workflows/testVisionOS.yml b/.circleci/configurations/test_workflows/testVisionOS.yml index 923377984e17c1..6a353e9fee259f 100644 --- a/.circleci/configurations/test_workflows/testVisionOS.yml +++ b/.circleci/configurations/test_workflows/testVisionOS.yml @@ -5,13 +5,3 @@ matrix: parameters: jsengine: ["JSC"] - # - test_ios_rntester: - # run_unit_tests: true - # use_frameworks: "StaticLibraries" - # ruby_version: "2.6.10" - # requires: - # - build_hermes_macos - # matrix: - # parameters: - # architecture: ["NewArch", "OldArch"] - # jsengine: ["Hermes", "JSC"]