Update gradle setup action and GHA runner OS version (#44)

This commit is contained in:
Raven Szewczyk 2024-12-26 15:18:02 +00:00 committed by GitHub
parent 7f626aef08
commit 0e6acf14d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 20 additions and 13 deletions

View File

@ -24,7 +24,7 @@ on:
jobs:
build-and-test:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Install Ubuntu dependencies
run: |
@ -41,9 +41,6 @@ jobs:
path: .gtnh-workflows
fetch-depth: 0
- name: Validate gradle wrapper checksum
uses: gradle/actions/wrapper-validation@v3
- name: Set up JDK versions
uses: actions/setup-java@v4
with:
@ -52,7 +49,14 @@ jobs:
21
17
distribution: 'zulu'
cache: gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"
validate-wrappers: true
- name: Grant execute permission for gradlew
run: chmod +x gradlew

View File

@ -10,7 +10,7 @@ jobs:
# This needs to be kept in sync with the labels being checked
# These don't need to hold the entire label name and aren't case sensitive
if: ${{ contains(github.event.pull_request.labels.*.name, 'Affects Balance') || contains(github.event.pull_request.labels.*.name, 'ongoing freeze') }}
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Label requires reviews
uses: GTNewHorizons/label-requires-reviews-action@master
@ -21,6 +21,5 @@ jobs:
# define which PR labels require how many aprroving reviewers
# Case sensitive and needs the full label name.
rules_yaml: |-
Affects Balance: 3
Affects Balance: 3
ongoing freeze - don't merge: 99

View File

@ -23,7 +23,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
env:
VERSION: ${{ github.ref_name }}
RELEASE_VERSION: ${{ github.ref_name }}
@ -35,9 +35,6 @@ jobs:
with:
fetch-depth: 32
- name: Validate gradle wrapper checksum
uses: gradle/actions/wrapper-validation@v3
- name: Set up JDK versions
uses: actions/setup-java@v4
with:
@ -46,7 +43,14 @@ jobs:
21
17
distribution: 'zulu'
cache: gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"
validate-wrappers: true
- name: Grant execute permission for gradlew
run: chmod +x gradlew