From dc4957f6ab99c9f88293e701b9afe21511899674 Mon Sep 17 00:00:00 2001 From: gogod3v-eval <138013047+gogod3v-eval@users.noreply.github.com> Date: Wed, 17 Jan 2024 14:15:05 +0100 Subject: [PATCH 1/4] Add .circleci/config.yml --- .circleci/config.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000000..4175da6cfe9 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,26 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/configuration-reference +version: 2.1 + +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/configuration-reference/#jobs +jobs: + say-hello: + # Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub. + # See: https://circleci.com/docs/configuration-reference/#executor-job + docker: + - image: cimg/base:stable + # Add steps to the job + # See: https://circleci.com/docs/configuration-reference/#steps + steps: + - checkout + - run: + name: "Say hello" + command: "echo Hello, World!" + +# Orchestrate jobs using workflows +# See: https://circleci.com/docs/configuration-reference/#workflows +workflows: + say-hello-workflow: + jobs: + - say-hello From 11e12b09a566c819fad67921515f73caf00bd63a Mon Sep 17 00:00:00 2001 From: gogod3v-eval <138013047+gogod3v-eval@users.noreply.github.com> Date: Wed, 17 Jan 2024 14:23:32 +0100 Subject: [PATCH 2/4] Update gradle.properties --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index d7cb0fccbdc..dfee94a2f47 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -org.gradle.jvmargs=-Xmx6g -Xms256m -XX:MaxMetaspaceSize=1g +org.gradle.jvmargs=-Xmx4g -Xms256m -XX:MaxMetaspaceSize=1g android.useAndroidX=true android.enableJetifier=true kapt.incremental.apt=false From 3dd2557d4f9dafffe9f47c4bd3927e48f5967598 Mon Sep 17 00:00:00 2001 From: gogod3v-eval <138013047+gogod3v-eval@users.noreply.github.com> Date: Wed, 17 Jan 2024 14:26:37 +0100 Subject: [PATCH 3/4] Update config.yml --- .circleci/config.yml | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4175da6cfe9..f03503e9138 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,25 +2,44 @@ # See: https://circleci.com/docs/configuration-reference version: 2.1 +# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects. +# See: https://circleci.com/docs/orb-intro/ +orbs: + # https://circleci.com/developer/orbs/orb/circleci/android + android: circleci/android@2.3.0 + # Define a job to be invoked later in a workflow. # See: https://circleci.com/docs/configuration-reference/#jobs jobs: - say-hello: + run-tests-without-build-cache: # Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub. # See: https://circleci.com/docs/configuration-reference/#executor-job - docker: - - image: cimg/base:stable + executor: + name: android/android-machine + tag: 2023.11.1 + # Add steps to the job # See: https://circleci.com/docs/configuration-reference/#steps steps: + - android/change-java-version: + java-version: 17 - checkout - run: - name: "Say hello" - command: "echo Hello, World!" + name: Checkout submodules as well + command: | + git "submodule" "update" "--init" "--recursive" "--jobs=10" + - run: + name: Add Build Cache dependency hashes + command: | + ./gradlew --write-verification-metadata sha256 + - run: + name: Lint PlayProdDebug + no_output_timeout: 60m + command: ./gradlew :Signal-Android:lintPlayProdDebug # Orchestrate jobs using workflows # See: https://circleci.com/docs/configuration-reference/#workflows workflows: - say-hello-workflow: + run-tests: jobs: - - say-hello + - run-tests-without-build-cache From b14b496c004bab8273485fcc582ec8e09118638f Mon Sep 17 00:00:00 2001 From: gogod3v-eval <138013047+gogod3v-eval@users.noreply.github.com> Date: Wed, 17 Jan 2024 14:36:43 +0100 Subject: [PATCH 4/4] Update config.yml --- .circleci/config.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index f03503e9138..6bfc147a2fa 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -28,6 +28,17 @@ jobs: name: Checkout submodules as well command: | git "submodule" "update" "--init" "--recursive" "--jobs=10" + - run: + name: Bitrise Build Cache + command: | + #!/usr/bin/env bash + set -euxo pipefail + + # download Bitrise Build Cache CLI + curl -sSfL 'https://raw.githubusercontent.com/bitrise-io/bitrise-build-cache-cli/main/install/installer.sh' | sh -s -- -b /tmp/bin -d + + # run the CLI to enable Bitrise build cache for Gradle + /tmp/bin/bitrise-build-cache enable-for gradle - run: name: Add Build Cache dependency hashes command: |