mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-03-04 14:54:42 +01:00
35 lines
896 B
YAML
35 lines
896 B
YAML
![]() |
name: Build
|
||
|
|
||
|
on: [ workflow_dispatch, push, pull_request ]
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Checkout Repository
|
||
|
uses: actions/checkout@v4
|
||
|
|
||
|
- name: Setup Java
|
||
|
uses: actions/setup-java@v4
|
||
|
with:
|
||
|
distribution: 'temurin'
|
||
|
java-version: '17'
|
||
|
|
||
|
- name: NeoGradle Cache
|
||
|
uses: actions/cache@v4
|
||
|
with:
|
||
|
path: "**/.gradle/repositories/"
|
||
|
key: "${{ runner.os }}-gradle-${{ hashFiles('**/libs.versions.*', '**/*.gradle*', '**/gradle-wrapper.properties') }}"
|
||
|
restore-keys: "${{ runner.os }}-gradle-"
|
||
|
|
||
|
- name: Setup Gradle
|
||
|
uses: gradle/actions/setup-gradle@v4
|
||
|
with:
|
||
|
gradle-home-cache-cleanup: true
|
||
|
|
||
|
- name: Validate Gradle Wrapper Integrity
|
||
|
uses: gradle/wrapper-validation-action@v2
|
||
|
|
||
|
- name: Build
|
||
|
run: ./gradlew build
|