Compare commits
2
Commits
442418f71e
..
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ed17e72dc
|
||
|
|
9226965744
|
@@ -3,39 +3,37 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [ dev ]
|
branches: [ dev ]
|
||||||
env:
|
env:
|
||||||
JAVA_VERSION: '21'
|
JAVA_VERSION: '25'
|
||||||
GRADLE_VERSION: '8.14.5'
|
GRADLE_VERSION: '8.14.5'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build and Test
|
name: Build and Test
|
||||||
runs-on: hostinger
|
runs-on: hostinger
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
container:
|
||||||
|
image: gitea.woggioni.net/woggioni/gitea-runner/debian:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 0
|
||||||
|
- name: Set up JDK
|
||||||
- name: Set up JDK ${{ env.JAVA_VERSION }}
|
uses: actions/setup-java@v5
|
||||||
uses: actions/setup-java@v4
|
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'oracle'
|
||||||
java-version: ${{ env.JAVA_VERSION }}
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
|
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@v4
|
uses: gradle/actions/setup-gradle@v6
|
||||||
with:
|
with:
|
||||||
gradle-version: ${{ env.GRADLE_VERSION }}
|
gradle-version: ${{ env.GRADLE_VERSION }}
|
||||||
# Only the main branch writes to the cache; PRs/feature branches read-only
|
# Only the main branch writes to the cache; PRs/feature branches read-only
|
||||||
cache-read-only: false
|
cache-read-only: false
|
||||||
|
|
||||||
- name: Validate Gradle wrapper
|
|
||||||
uses: gradle/wrapper-validation-action@v3
|
|
||||||
with:
|
|
||||||
distribution-type: 'bin'
|
|
||||||
version: ${{ env.GRADLE_VERSION }}
|
|
||||||
|
|
||||||
- name: Run Gradle build
|
- name: Run Gradle build
|
||||||
run: ./gradlew build --no-daemon
|
run: ./gradlew build --no-daemon
|
||||||
|
|
||||||
|
# - name: Publish artifacts
|
||||||
|
# env:
|
||||||
|
# PUBLISHER_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
|
||||||
|
# run: ./gradlew --no-daemon publish
|
||||||
|
|||||||
+1
-2
@@ -38,8 +38,7 @@ allprojects {
|
|||||||
|
|
||||||
java {
|
java {
|
||||||
toolchain {
|
toolchain {
|
||||||
languageVersion = JavaLanguageVersion.of(21)
|
languageVersion = JavaLanguageVersion.of(25)
|
||||||
vendor = JvmVendorSpec.ORACLE
|
|
||||||
}
|
}
|
||||||
modularity.inferModulePath = true
|
modularity.inferModulePath = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user