Compare commits

...
2 Commits
Author SHA1 Message Date
woggioni 5ed17e72dc tmp
CI / Build and Test (push) Successful in 2m19s
2026-06-20 13:43:26 +08:00
woggioni 9226965744 added test CI pipeline on hostinger runner
CI / Build and Test (push) Failing after 37s
2026-06-19 22:20:20 +08:00
2 changed files with 40 additions and 2 deletions
+39
View File
@@ -0,0 +1,39 @@
name: CI
on:
push:
branches: [ dev ]
env:
JAVA_VERSION: '25'
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
with:
distribution: 'oracle'
java-version: ${{ env.JAVA_VERSION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
with:
gradle-version: ${{ env.GRADLE_VERSION }}
# Only the main branch writes to the cache; PRs/feature branches read-only
cache-read-only: false
- name: Run Gradle build
run: ./gradlew build --no-daemon
# - name: Publish artifacts
# env:
# PUBLISHER_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
# run: ./gradlew --no-daemon publish
+1 -2
View File
@@ -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
} }