Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/actions/common-setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Common Setup'
description: 'Set up JDK and grant execute permissions for gradlew'
description: 'Set up the JDK and Gradle'
Comment thread
This conversation was marked as resolved.

inputs:
java-version:
Expand All @@ -15,9 +15,6 @@ runs:
with:
java-version: ${{ inputs.java-version }}
distribution: 'microsoft'
cache: gradle

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
with:
cache-provider: basic
13 changes: 9 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ jobs:
os: [ ubuntu-latest, windows-latest ]
java: [ 25 ]
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v7
Expand All @@ -32,20 +30,25 @@ jobs:
java-version: ${{ matrix.java }}

- name: Build with Gradle
run: ./gradlew build --info
run: ./gradlew build --stacktrace

- name: Upload build results
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v7
with:
name: ${{ matrix.os }} Java ${{ matrix.java }} build results
path: ${{ github.workspace }}/build/libs/
if-no-files-found: error
retention-days: 7

- name: Upload test results
if: ${{ always() }}
if: ${{ failure() }}
Comment thread
leviem1 marked this conversation as resolved.
uses: actions/upload-artifact@v7
with:
name: ${{ matrix.os }} Java ${{ matrix.java }} test results
path: ${{ github.workspace }}/build/reports/
if-no-files-found: ignore
retention-days: 7

release:
runs-on: ubuntu-latest
Expand All @@ -68,6 +71,8 @@ jobs:
with:
name: Release Build
path: ${{ github.workspace }}/build/libs/
if-no-files-found: error
retention-days: 14

notify:
name: Send job complete notification
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ jobs:
os: [ ubuntu-latest, windows-latest ]
java: [ 25 ]
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v7
Expand All @@ -35,17 +33,22 @@ jobs:
java-version: ${{ matrix.java }}

- name: Build with Gradle
run: ./gradlew build --info
run: ./gradlew build --stacktrace

- name: Upload build results
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v7
with:
name: ${{ matrix.os }} Java ${{ matrix.java }} build results
path: ${{ github.workspace }}/build/libs/
if-no-files-found: error
retention-days: 7

- name: Upload test results
if: ${{ always() }}
if: ${{ failure() }}
uses: actions/upload-artifact@v7
with:
name: ${{ matrix.os }} Java ${{ matrix.java }} test results
path: ${{ github.workspace }}/build/reports/
if-no-files-found: ignore
Comment thread
leviem1 marked this conversation as resolved.
retention-days: 7
2 changes: 2 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
with:
name: Release Build
path: ${{ github.workspace }}/build/libs/
if-no-files-found: error
retention-days: 14

- name: Create Release
uses: softprops/action-gh-release@v3
Expand Down
Loading