-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 964 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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