mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-03-04 14:54:42 +01:00

Co-authored-by: TropheusJ <jverrellijr@icloud.com> Co-authored-by: techno-sam <77073745+techno-sam@users.noreply.github.com> Co-authored-by: ryanhcode <42245712+ryanhcode@users.noreply.github.com>
31 lines
848 B
YAML
31 lines
848 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
|
|
run: echo "JAVA_HOME=$JAVA_HOME_17_X64" >> "$GITHUB_ENV"
|
|
|
|
- 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
|