Skip to content

Commit

Permalink
Update to 1.20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
LLytho committed Jan 18, 2024
1 parent fbd7b78 commit fa9fe7f
Show file tree
Hide file tree
Showing 20 changed files with 725 additions and 487 deletions.
92 changes: 55 additions & 37 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,62 @@
name: Build

on:
workflow_dispatch:
push:
branches:
- '1.19'
tags-ignore:
- '**'
pull_request:
branches:
- '1.19'
workflow_dispatch:
push:
branches:
- '1.20.1'
tags-ignore:
- '**'
paths:
- 'gradle/**'
- '**.java'
- '**.kts'
- '**.properties'
- '**/build.yml'
pull_request:
branches:
- '1.20.1'
paths:
- 'gradle/**'
- '**.java'
- '**.kts'
- '**.properties'
- '**/build.yml'

env:
JAVA_DIST: 'zulu'
JAVA_VERSION: 17
JAVA_DIST: 'zulu'
JAVA_VERSION: 17

jobs:
build:
name: Build
runs-on: ubuntu-latest
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
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

- name: Test
run: ./gradlew test --stacktrace
Loading

0 comments on commit fa9fe7f

Please sign in to comment.