aboutsummaryrefslogtreecommitdiff
path: root/.github/composite/gradle/action.yml
blob: 5f7a2603a19bead9c8b59472870e064b1f270388 (plain)
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
# SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe>
#
# SPDX-License-Identifier: CC0-1.0

name: "Run Gradle on a filter=tree:0 checkout"
runs:
    using: composite
    steps:
        -   uses: actions/checkout@v4
            name: Checkout repository
            with:
                fetch-tags: true
                fetch-depth: 0
                filter: 'tree:0'
        -   name: Set up JDK 21
            uses: actions/setup-java@v4
            with:
                distribution: temurin
                java-version: 21
        -   name: Set up gradle cache
            uses: gradle/actions/setup-gradle@v3
            with:
                add-job-summary-as-pr-comment: 'on-failure'
        -   name: Prepare unpacked Jars
            run: |
                ./gradlew unpackAllJars
            shell: sh