Fixed npe in finalguard
CI / Compile, test and publish (push) Has been cancelled

This commit is contained in:
2026-07-13 17:11:09 +08:00
parent 185456c10e
commit 372c9e7eb9
3 changed files with 34 additions and 5 deletions
+28 -3
View File
@@ -2,12 +2,37 @@ name: CI
on:
push:
branches: [ master ]
env:
JAVA_VERSION: '25'
GRADLE_VERSION: '8.14.5'
jobs:
build:
runs-on: woryzen
name: Compile, test and publish
runs-on: hostinger
timeout-minutes: 30
container:
image: gitea.woggioni.net/woggioni/gitea-runner/debian:latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- 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: Execute Gradle build
env:
PUBLISHER_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}