Fix build-configuration-compatibility
Gradle experiment
#91
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🐘 Gradle experiments | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 9 * * MON" | |
pull_request: | |
branches: [ main ] | |
env: | |
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
DEVELOCITY_URL: "https://scans.gradle.com" | |
GIT_REPO: "https://github.com/SimonMarquis/SealedObjectInstances" | |
TASKS: "build" | |
jobs: | |
build-cache-compatibility: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
experiment: [1, 2, 3] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-java | |
- name: Download latest version of the validation scripts | |
uses: gradle/develocity-build-validation-scripts/.github/actions/gradle/download@actions-stable | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run experiment 1 | |
if: matrix.experiment == 1 | |
uses: gradle/develocity-build-validation-scripts/.github/actions/gradle/experiment-1@actions-stable | |
with: | |
gitRepo: ${{ env.GIT_REPO }} | |
tasks: ${{ env.TASKS }} | |
develocityUrl: ${{ env.DEVELOCITY_URL }} | |
- name: Run experiment 2 | |
if: matrix.experiment == 2 | |
uses: gradle/develocity-build-validation-scripts/.github/actions/gradle/experiment-2@actions-stable | |
with: | |
gitRepo: ${{ env.GIT_REPO }} | |
tasks: ${{ env.TASKS }} | |
develocityUrl: ${{ env.DEVELOCITY_URL }} | |
failIfNotFullyCacheable: true | |
- name: Run experiment 3 | |
if: matrix.experiment == 3 | |
uses: gradle/develocity-build-validation-scripts/.github/actions/gradle/experiment-3@actions-stable | |
with: | |
gitRepo: ${{ env.GIT_REPO }} | |
tasks: ${{ env.TASKS }} | |
develocityUrl: ${{ env.DEVELOCITY_URL }} | |
failIfNotFullyCacheable: true | |
build-configuration-compatibility: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-java | |
- name: Run configuration cache experiment | |
uses: gradle/develocity-build-validation-scripts/.github/actions/gradle/experiment-config-cache@actions-stable | |
with: | |
tasks: ${{ env.TASKS }} | |
- name: Archive configuration cache reports | |
if: ${{ success() || failure() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: configuration-cache-reports | |
path: '**/configuration-cache-report.html' |