Skip to content

Commit

Permalink
Delete simulators in background on CircleCI (#33822)
Browse files Browse the repository at this point in the history
Summary:
Instead of wait for Circle to delete the simulators, we can do it in background and save 40 seconds

Changelog:
[Internal] - Delete iOS simulators in background

Pull Request resolved: #33822

Reviewed By: cortinico

Differential Revision: D36348573

Pulled By: f-meloni

fbshipit-source-id: 89d9e7caddb44e085734e74f417687ee031dd67b
  • Loading branch information
f-meloni authored and facebook-github-bot committed May 13, 2022
1 parent 3337add commit 0c7543d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,14 @@ jobs:
- checkout
- run_yarn

# The macOS machine can run out of storage if Hermes is enabled and built from source.
# Since this job does not use the iOS Simulator, deleting it provides a quick way to
# free up space.
- run:
name: Delete iOS Simulators
background: true
command: sudo rm -rf /Library/Developer/CoreSimulator/Profiles/Runtimes/

- run:
name: Set USE_HERMES=1
command: echo "export USE_HERMES=1" >> $BASH_ENV
Expand All @@ -774,13 +782,6 @@ jobs:
rm -rf packages/rn-tester/Pods
cd packages/rn-tester && bundle exec pod install
# The macOS machine can run out of storage if Hermes is enabled and built from source.
# Since this job does not use the iOS Simulator, deleting it provides a quick way to
# free up space.
- run:
name: Delete iOS Simulators
command: sudo rm -rf /Library/Developer/CoreSimulator/Profiles/Runtimes/

- run:
name: Build RNTester
command: |
Expand Down

0 comments on commit 0c7543d

Please sign in to comment.