Change: JAR Manifests: Rename column "Others" to "General" and make i… #548
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
workflow_dispatch: | |
inputs: | |
additionalGradleOptions: | |
description: 'Additional Gradle options' | |
required: false | |
default: '' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
PUSH_GRADLE_OPTIONS: '' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 11 and 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: | | |
11 | |
17 | |
- name: Restore Sonar Cache | |
uses: actions/cache@v4 | |
if: ${{ github.event_name == 'push' && !startsWith(github.ref_name, 'dependabot/') }} | |
with: | |
path: /home/runner/.sonar/cache | |
key: sonar-cache | |
- name: Set Push Gradle options | |
if: ${{ github.event_name == 'push' && !startsWith(github.ref_name, 'dependabot/') }} | |
run: echo "PUSH_GRADLE_OPTIONS=sonar" >> $GITHUB_ENV | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
cache-read-only: false | |
- name: Build with Gradle | |
run: './gradlew --no-daemon :jarhc:build ${{ env.PUSH_GRADLE_OPTIONS }} ${{ github.event.inputs.additionalGradleOptions }}' | |
- name: Upload reports | |
uses: actions/upload-artifact@v4 | |
if: ${{ always() }} | |
with: | |
name: reports | |
path: jarhc/build/reports | |
- name: Upload libs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: libs | |
path: jarhc/build/libs | |
- name: Upload docs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: docs | |
path: jarhc/build/docs |