Manual Build and Test #8
Workflow file for this run
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: Manual Build and Test | |
on: | |
workflow_dispatch: | |
inputs: | |
os: | |
description: 'OS' | |
required: false | |
default: 'ubuntu-latest' | |
type: choice | |
options: | |
- ubuntu-latest | |
- windows-latest | |
jdk-distribution: | |
description: 'JDK Distribution' | |
required: false | |
default: 'temurin' | |
type: choice | |
options: | |
- temurin | |
- semeru | |
- microsoft | |
- oracle | |
- zulu | |
- corretto | |
- liberica | |
jdk-version: | |
description: 'JDK Version' | |
required: true | |
type: string | |
args: | |
description: 'Arguments like -Dquickly | -DskipTests | -DallTests' | |
required: false | |
default: '-Dquickly' | |
type: string | |
timeout: | |
description: 'Job Timeout Minutes' | |
required: false | |
default: 120 | |
type: number | |
# Only run the latest job | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: ${{ inputs.os }} | |
timeout-minutes: ${{ fromJSON(inputs.timeout) }} | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ inputs.jdk-distribution }} ${{ inputs.jdk-version }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: ${{ inputs.jdk-distribution }} | |
java-version: ${{ inputs.jdk-version }} | |
cache: 'maven' | |
- name: Build and test with Maven | |
run: mvn -U -B -ntp clean install ${{ inputs.args }} |