From 095594a2d99cd36d24d0becbd8ea0589996bc1d2 Mon Sep 17 00:00:00 2001 From: Mark Nevill Date: Fri, 4 Feb 2022 08:44:30 +0000 Subject: [PATCH] feat: allow passing executor parameters to jobs --- src/jobs/android_build.yml | 20 ++++++++++++++++++-- src/jobs/ios_build.yml | 15 +++++++++++++-- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/src/jobs/android_build.yml b/src/jobs/android_build.yml index 54b0859..626b390 100644 --- a/src/jobs/android_build.yml +++ b/src/jobs/android_build.yml @@ -1,7 +1,5 @@ description: Builds the Android app at the given path with the given build types. -executor: linux_android - parameters: # For this job checkout: @@ -49,6 +47,24 @@ parameters: description: Configure the android tests to run. Defaults to assembleAndroidTest type: string default: assembleAndroidTest + java_options: + description: Java command options. Note that setting this will override the default options so you might need to supply those as well. + type: string + default: '-Xmx1024m -XX:+UnlockExperimentalVMOptions -XX:+UseContainerSupport' + gradle_options: + description: Gradle command options. Note that setting this will override the default options so you might need to supply those as well. + type: string + default: '-Xmx2014m -Dorg.gradle.daemon=false -Dorg.gradle.jvmargs="-XX:+UnlockExperimentalVMOptions -XX:+HeapDumpOnOutOfMemoryError"' + resource_class: + description: Changes the resource class of the executor. Requires a support request to enable the resource_class parameter. See https://circleci.com/docs/2.0/configuration-reference/#resource_class + type: string + default: medium + +executor: + name: linux_android + java_options: <> + gradle_options: <> + resource_class: <> steps: - when: diff --git a/src/jobs/ios_build.yml b/src/jobs/ios_build.yml index 1dbf06c..ec96542 100644 --- a/src/jobs/ios_build.yml +++ b/src/jobs/ios_build.yml @@ -1,7 +1,5 @@ description: Builds the iOS app at the given path with the given build scheme -executor: macos - parameters: # For this job checkout: @@ -73,6 +71,19 @@ parameters: description: Should we run brew update? Defaults to true type: boolean default: true + xcode_version: + description: The version of Xcode to use. See here for the list of supported versions https://circleci.com/docs/2.0/testing-ios/#supported-xcode-versions + type: string + default: "12.4.0" + resource_class: + description: Changes the resource class of the executor. Requires a support request to enable the resource_class parameter. See https://circleci.com/docs/2.0/configuration-reference/#resource_class + type: string + default: medium + +executor: + name: macos + xcode_version: <> + resource_class: <> steps: - when: