Skip to content

Portability testing OSes and Java LTS versions #16

Portability testing OSes and Java LTS versions

Portability testing OSes and Java LTS versions #16

Workflow file for this run

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 :codyze-cli:build -x check --parallel -Pversion=0.0.0