GitHub Actions: cache buildSrc/build to speed up Gradle builds by ~40 seconds
Some checks failed
CI / build (push) Has been cancelled
Error Prone / error-prone (push) Has been cancelled
Fonts / Fonts (inter) (push) Has been cancelled
Fonts / Fonts (jetbrains-mono) (push) Has been cancelled
Fonts / Fonts (roboto) (push) Has been cancelled
Fonts / Fonts (roboto-mono) (push) Has been cancelled
Native Libraries / Natives (macos-latest) (push) Has been cancelled
Native Libraries / Natives (ubuntu-24.04-arm) (push) Has been cancelled
Native Libraries / Natives (ubuntu-latest) (push) Has been cancelled
Native Libraries / Natives (windows-latest) (push) Has been cancelled
CI / release (push) Has been cancelled

This commit is contained in:
Karl Tauber
2025-11-01 11:15:46 +01:00
parent 02f7cb8972
commit d4827b6ddf
7 changed files with 57 additions and 6 deletions

View File

@@ -14,6 +14,7 @@ on:
- '.*'
- '**/.settings/**'
- 'flatlaf-core/svg/**'
- 'flatlaf-natives/**'
- 'flatlaf-testing/dumps/**'
- 'flatlaf-testing/misc/**'
- 'images/**'
@@ -32,7 +33,9 @@ jobs:
with:
java-version: 21
distribution: temurin # pre-installed on ubuntu-latest
cache: gradle
- name: Cache Gradle
uses: ./.github/actions/cache-gradle
# test against
@@ -100,7 +103,9 @@ jobs:
with:
java-version: 21
distribution: temurin # pre-installed on ubuntu-latest
cache: gradle
- name: Cache Gradle
uses: ./.github/actions/cache-gradle
- name: Release a new stable version to Maven Central
run: ./gradlew publishToSonatype closeSonatypeStagingRepository :flatlaf-demo:build :flatlaf-theme-editor:build -PskipFonts -Prelease -Dorg.gradle.parallel=false

View File

@@ -14,6 +14,7 @@ on:
- '.*'
- '**/.settings/**'
- 'flatlaf-core/svg/**'
- 'flatlaf-natives/**'
- 'flatlaf-testing/dumps/**'
- 'flatlaf-testing/misc/**'
- 'images/**'
@@ -31,7 +32,9 @@ jobs:
with:
java-version: 21
distribution: temurin # pre-installed on ubuntu-latest
cache: gradle
- name: Cache Gradle
uses: ./.github/actions/cache-gradle
- name: Check with Error Prone
run: ./gradlew errorprone

View File

@@ -39,7 +39,9 @@ jobs:
with:
java-version: 21
distribution: temurin # pre-installed on ubuntu-latest
cache: gradle
- name: Cache Gradle
uses: ./.github/actions/cache-gradle
- name: Build with Gradle
run: ./gradlew :flatlaf-fonts-${{ matrix.font }}:build

View File

@@ -63,7 +63,9 @@ jobs:
with:
java-version: 21
distribution: temurin
cache: gradle
- name: Cache Gradle
uses: ./.github/actions/cache-gradle
- name: Build with Gradle
# --no-daemon is necessary on Windows otherwise caching Gradle would fail with:

View File

@@ -26,7 +26,9 @@ jobs:
with:
java-version: 21
distribution: temurin # pre-installed on ubuntu-latest
cache: gradle
- name: Cache Gradle
uses: ./.github/actions/cache-gradle
- name: Publish PR snapshot to Sonatype Central
run: >