echobind / circleci-react-native-orb

Take the pain out of building React Native apps on Circle CI
4 stars 3 forks source link

feat(executor_parameters): add resource_class and java_options as executor parameters #8

Closed isaiahgrey93 closed 5 years ago

isaiahgrey93 commented 5 years ago

Allows the project circle.yml to configure the resource_class for each executor individually, and the JAVA_OPTIONS (passed as java_options) parameter passed to the android build process.

Example:

version: 2.1
orbs:
  react-native: echobind/react-native
workflows:
  version: 2
  main:
    jobs:
      - react-native/node:
          name: node
          ...
      - react-native/android:
          custom_executor:
            name: react-native/android
            java_options: '-Xms2080m -Xmx3072m'
            resource_class: medium+
...

Example use case: https://circleci.com/gh/truecoach/truecoach-connect/527