2021-07-30 19:53:09 +00:00
|
|
|
name: Build
|
|
|
|
on: [pull_request, push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Validate gradle wrapper
|
|
|
|
uses: gradle/wrapper-validation-action@v1
|
2021-12-12 16:46:13 +00:00
|
|
|
- name: Setup JDK 17
|
2021-07-30 19:53:09 +00:00
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
2021-12-12 16:46:13 +00:00
|
|
|
java-version: 17
|
2021-07-30 19:53:09 +00:00
|
|
|
- name: Ensure gradlew is executable
|
|
|
|
run: chmod +x ./gradlew
|
|
|
|
- name: Build with gradle
|
2021-12-12 16:46:13 +00:00
|
|
|
uses: gradle/gradle-build-action@v2
|
|
|
|
with:
|
|
|
|
arguments: build
|
2021-07-30 19:53:09 +00:00
|
|
|
- name: Upload build artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: Artifacts
|
|
|
|
path: build/libs/
|