Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotori316 authored May 11, 2024
1 parent 4958032 commit e6b0f6a
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Java CI with Gradle

on:
push:
branches: [ 1.20.2-neoforge ]
branches: [ 1.20.6-neoforge ]
pull_request:
branches: [ 1.20.2-neoforge ]
branches: [ 1.20.6-neoforge ]

jobs:
build:
Expand All @@ -16,16 +16,17 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 17
uses: actions/setup-java@v3
- uses: gradle/actions/wrapper-validation@v3
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: microsoft
java-version: 17
java-version: 21
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
- uses: gradle/actions/setup-gradle@v3
with:
arguments: build
cache-disabled: true
cache-read-only: ${{ github.event_name != 'push' }}
gradle-home-cache-cleanup: true
add-job-summary: 'on-failure'
- run: ./gradlew build

0 comments on commit e6b0f6a

Please sign in to comment.