mirror of
https://github.com/AlmostReliable/almostunified.git
synced 2024-11-25 09:08:01 -05:00
46 lines
1,010 B
YAML
46 lines
1,010 B
YAML
name: Build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- '1.19'
|
|
tags-ignore:
|
|
- '**'
|
|
pull_request:
|
|
branches:
|
|
- '1.19'
|
|
|
|
env:
|
|
JAVA_DIST: 'zulu'
|
|
JAVA_VERSION: 17
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
if: |
|
|
!contains(github.event.head_commit.message, '[skip build]')
|
|
steps:
|
|
- name: Clone Repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up JDK ${{ env.JAVA_VERSION }}
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: ${{ env.JAVA_VERSION }}
|
|
distribution: ${{ env.JAVA_DIST }}
|
|
cache: gradle
|
|
|
|
- name: Cleanup Gradle Cache
|
|
run: |
|
|
rm -f ~/.gradle/caches/modules-2/modules-2.lock
|
|
rm -f ~/.gradle/caches/modules-2/gc.properties
|
|
- name: Make Gradle executable
|
|
run: chmod +x ./gradlew
|
|
|
|
- name: Validate Gradle wrapper
|
|
uses: gradle/wrapper-validation-action@v1
|
|
|
|
- name: Build
|
|
run: ./gradlew build --stacktrace
|