Skip to content

Fix CC restoring

Fix CC restoring #65

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
env:
GRADLE_OPTS: -Dorg.gradle.caching=true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 21
- name: Cache build logic
uses: actions/cache@v4
with:
path: gradle/build-logic/build
key: build-logic-${{ hashFiles('gradle/build-logic/src/**', 'gradle/build-logic/build.gradle.kts','gradle/build-logic/settings.gradle.kts') }}
- uses: gradle/actions/setup-gradle@v3
with:
gradle-home-cache-cleanup: true
cache-encryption-key: ${{ secrets.CC }}
- name: Build with Gradle
run: ./gradlew build
- uses: actions/upload-artifact@v4
with:
path: build/reports/configuration-cache