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