Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
ci: add (#6)
Browse files Browse the repository at this point in the history
* 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 675143f)
  • Loading branch information
doinkythederp committed Nov 20, 2023
1 parent 5fd78df commit d37cbe5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d37cbe5

Please sign in to comment.