From b123f5b77f04168c91630bd8dc9abe22a52c4e2d Mon Sep 17 00:00:00 2001 From: Swordsteel Date: Mon, 15 Sep 2025 10:49:59 +0200 Subject: [PATCH] test --- .gitea/workflows/gradle-build.yaml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/gradle-build.yaml diff --git a/.gitea/workflows/gradle-build.yaml b/.gitea/workflows/gradle-build.yaml new file mode 100644 index 0000000..93c9951 --- /dev/null +++ b/.gitea/workflows/gradle-build.yaml @@ -0,0 +1,31 @@ +name: Gradle Build on PR + +on: + workflow_call: + inputs: + JAVA_VERSION: + default: 17 + description: Java version to use + required: false + type: string + BUILD_OPTION: + default: "" + description: Gradle build option + required: false + type: string + +jobs: + gradle-build: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + with: + fetch-depth: 1 + - name: Set up JDK + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: ${{ inputs.JAVA_VERSION }} + - name: Run Gradle Build + run: ./gradlew build ${{ inputs.BUILD_OPTION }}