Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Configuration Cache] Disable Configuration Cache on CI #3547

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
71 changes: 18 additions & 53 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,65 +5,30 @@ agents:
queue: "android"

steps:
- label: Gradle Wrapper Validation
command: validate_gradle_wrapper
agents:
queue: linter

# Wait for Gradle Wrapper to be validated before running any other jobs
- wait

- group: "Linters"
steps:
- label: "☢️ Danger - PR Check"
command: danger
key: danger
if: "build.pull_request.id != null"
retry:
manual:
permit_on_passed: true
agents:
queue: "linter"
- label: "🛠 Assemble with CC [With Restore]"
command: |
echo "--- :rubygems: Setting up Gems"
install_gems

- label: 'Lint'
command: ".buildkite/commands/lint.sh"
plugins: [$CI_TOOLKIT]
artifact_paths:
- "**/build/reports/lint-results*.*"
echo "--- :closed_lock_with_key: Installing Secrets"
bundle exec fastlane run configure_apply

- label: 'Unit tests'
command: ".buildkite/commands/run-unit-tests.sh"
plugins: [$CI_TOOLKIT]
.buildkite/commands/restore-cache.sh

- label: 'Dependency diff'
if: build.pull_request.id != null
command: comment_with_dependency_diff 'app' 'releaseRuntimeClasspath'
plugins: [$CI_TOOLKIT]
artifact_paths:
- "**/build/reports/diff/*"
echo "--- 🛠 Build with CC [With Restore]"
./gradlew assembleDebug
plugins: [ $CI_TOOLKIT ]

- label: 'Spotless formatting check'
- label: "🛠 Assemble without CC [With Restore]"
command: |
echo "--- 🔎 Checking formatting with Spotless"
./gradlew spotlessCheck
plugins: [$CI_TOOLKIT]
echo "--- :rubygems: Setting up Gems"
install_gems

- label: "Instrumented tests"
command: ".buildkite/commands/run-instrumented-tests.sh"
plugins: [$CI_TOOLKIT]
artifact_paths:
- "**/build/instrumented-tests/**/*"
echo "--- :closed_lock_with_key: Installing Secrets"
bundle exec fastlane run configure_apply

- label: "Assemble release APK"
command: ".buildkite/commands/assemble-release-apk.sh"
plugins: [ $CI_TOOLKIT ]
artifact_paths:
- "**/build/outputs/apk/**/*"
.buildkite/commands/restore-cache.sh

- label: "Prototype Builds"
if: "build.pull_request.id != null"
command: |
".buildkite/commands/prototype-build.sh"
echo "--- 🛠 Build without CC [With Restore]"
./gradlew assembleDebug --no-configuration-cache
plugins: [ $CI_TOOLKIT ]
artifact_paths:
- "**/build/outputs/apk/**/*"