From d37cbe5c8fe4f0fdb9b41ede3d238d7ce1205c20 Mon Sep 17 00:00:00 2001 From: doinkythederp Date: Wed, 8 Nov 2023 16:01:46 -0800 Subject: [PATCH] ci: add (#6) * ci: add build workflow * ci: add build caching * ci: only use flag for build cache * ci: improve step naming * ci: add validate gradle wrapper workflow * ci: bump actions/checkout version (cherry picked from commit 675143fcbdb8d6bca4367d76796f917ac2094e97) --- .github/workflows/build.yml | 21 +++++++++++++++++++ .../workflows/gradle-wrapper-validation.yml | 13 ++++++++++++ gradle/wrapper/gradle-wrapper.properties | 1 + 3 files changed, 35 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/gradle-wrapper-validation.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..08fed61 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: Build +on: + push: + workflow_dispatch: +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Java JDK + uses: actions/setup-java@v3.13.0 + with: + distribution: temurin + java-version: 17 + - name: Setup Kotlin + uses: fwilhe2/setup-kotlin@0.9.0 + - uses: burrunan/gradle-cache-action@v1 + name: Build project (with cache) + with: + job-id: jdk17 + arguments: --no-daemon --build-cache build \ No newline at end of file diff --git a/.github/workflows/gradle-wrapper-validation.yml b/.github/workflows/gradle-wrapper-validation.yml new file mode 100644 index 0000000..3523f36 --- /dev/null +++ b/.github/workflows/gradle-wrapper-validation.yml @@ -0,0 +1,13 @@ +name: "Validate Gradle Wrapper" +on: + push: + pull_request: + workflow_dispatch: + +jobs: + validation: + name: Validation + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: gradle/wrapper-validation-action@v1 \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index c23a1b3..a8d2710 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=permwrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip +distributionSha256Sum=f6b8596b10cce501591e92f229816aa4046424f3b24d771751b06779d58c8ec4 zipStoreBase=GRADLE_USER_HOME zipStorePath=permwrapper/dists