Portability testing OSes and Java LTS versions #17
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: java-upgrade | |
on: | |
schedule: | |
# runs at 00:01 on the first every month | |
- cron: '1 0 1 * *' | |
# can be triggered manually | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
version: [ "19", "20", "21" ] | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
runs-on: ${{ matrix.os }} | |
continue-on-error: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Java ${{ matrix.version }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: ${{ matrix.version }} | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
# - name: Build Windows | |
# if: ${{ startsWith(matrix.os, 'windows') }} | |
# run: gradlew.bat :codyze-cli:build -x check --parallel -Pversion=0.0.0 | |
- name: Build Default | |
# if: ${{ !startsWith(matrix.os, 'windows') }} | |
run: ./gradlew build -x check --parallel |