From e344721d9b3c01ae3507887982470df070f8d1c4 Mon Sep 17 00:00:00 2001 From: Coccocoa's Helper Date: Wed, 21 Dec 2022 15:23:15 +0000 Subject: [PATCH] t --- .github/workflows/gradle.yml | 53 ++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/gradle.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..dc7e279 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,53 @@ +# Build Workflow + +name: Build + +on: + pull_request: + workflow_dispatch: + push: + +concurrency: + group: ${{ github.head_ref || format('{0}-{1}', github.ref, github.run_number) }} + cancel-in-progress: true + +jobs: + build: + name: Build + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + java-version: 17 + distribution: temurin + cache: 'gradle' + + - uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + **/loom-cache + **/prebundled-jars + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Chmod Gradle + run: chmod +x ./gradlew + + - name: Build + run: ./gradlew build --no-daemon + + - name: Upload Build Artifacts + uses: actions/upload-artifact@v2 + with: + name: artifacts + path: build/libs