This commit is contained in:
@@ -3,13 +3,33 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- 'dev'
|
||||
env:
|
||||
JAVA_VERSION: '25'
|
||||
GRADLE_VERSION: '9.7.1'
|
||||
jobs:
|
||||
build:
|
||||
runs-on: woryzen
|
||||
container:
|
||||
image: gitea.woggioni.net/woggioni/gitea-runner/archlinux:latest
|
||||
volumes:
|
||||
- gitea-runner:/var/lib/gitea-runner
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v4
|
||||
- name: Execute Gradle build
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v5
|
||||
with:
|
||||
distribution: 'graalvm'
|
||||
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: true
|
||||
- name: Run Gradle build
|
||||
run: ./gradlew build
|
||||
- name: Prepare Docker image build
|
||||
run: ./gradlew prepareDockerBuild
|
||||
|
||||
Reference in New Issue
Block a user