Skip to content

Commit

Permalink
new: GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ishland committed Oct 25, 2023
1 parent ffe492b commit b29a615
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build
on: [pull_request, push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle0-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle0-
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup jdk 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
java-package: jdk
- name: build
run: ./gradlew build

0 comments on commit b29a615

Please sign in to comment.