Skip to content

🐘 Gradle experiments #121

🐘 Gradle experiments

🐘 Gradle experiments #121

name: 🐘 Gradle experiments
on:
workflow_dispatch:
schedule:
- cron: "0 9 * * MON"
env:
DEVELOCITY_URL: "https://scans.gradle.com"
GIT_REPO: "https://github.com/SimonMarquis/SealedObjectInstances"
TASKS: "build -x spotlessCheck"
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@f4b4a15ed96225ae1b6d3a09201a22f166f97fc5 # v2.7.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run experiment 1
if: matrix.experiment == 1
uses: gradle/develocity-build-validation-scripts/.github/actions/gradle/experiment-1@f4b4a15ed96225ae1b6d3a09201a22f166f97fc5 # v2.7.3
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@f4b4a15ed96225ae1b6d3a09201a22f166f97fc5 # v2.7.3
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@f4b4a15ed96225ae1b6d3a09201a22f166f97fc5 # v2.7.3
with:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
develocityUrl: ${{ env.DEVELOCITY_URL }}
failIfNotFullyCacheable: true
- name: Upload build reports
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: "build-cache-compatibility-reports-${{ matrix.experiment }}"
path: |
build/reports/configuration-cache/**/*.html
build/reports/problems/problems-report.html
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@f4b4a15ed96225ae1b6d3a09201a22f166f97fc5 # v2.7.3
with:
tasks: ${{ env.TASKS }}
- name: Upload build reports
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: build-configuration-compatibility-reports
path: |
build/reports/configuration-cache/**/*.html
build/reports/problems/problems-report.html