Optimize Gradle build on GitHub
This commit is contained in:
parent
e59d328783
commit
c189f711ed
1 changed files with 26 additions and 0 deletions
26
.github/workflows/build.yml
vendored
Normal file
26
.github/workflows/build.yml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: "Gradle build"
|
||||
permissions: {}
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
- workflow_dispatch
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: "Gradle build"
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: "Checkout sources"
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: "Setup Java"
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: "temurin"
|
||||
java-version: "17"
|
||||
- name: "Setup Gradle"
|
||||
uses: gradle/actions/setup-gradle@v3
|
||||
- name: "Execute Gradle build"
|
||||
run: "./gradlew --no-daemon build"
|
||||
Loading…
Reference in a new issue