-
Notifications
You must be signed in to change notification settings - Fork 18
33 lines (31 loc) · 955 Bytes
/
upgrade.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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:
# TODO: include JAVA SE 21 (LTS) on release
version: [ "19", "20" ]
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
run: ./gradlew :codyze-cli:build -x check --parallel -Pversion=0.0.0
# step-level 'continue-on-error' needed to mask a negative workflow result
continue-on-error: true