Dev/1.21 #361
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
- 'mkdocs.yml' | |
- 'README.md' | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/loom-cache | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
gradle- | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Validate gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Setup JDK 21 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 21 | |
- name: Ensure gradlew is executable | |
run: chmod +x ./gradlew | |
- name: Validate the gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Build | |
run: ./gradlew build |