Skip to content

Commit

Permalink
OC-229: add a build plan for JDK21
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-parfianowicz committed Jan 30, 2024
1 parent 78f477d commit 9490652
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/A-build-and-test-jdk21.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: A Build and test on JDK21

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: 21
distribution: temurin
cache: maven

- name: Cache Eclipse binaries
id: cache-eclipse
uses: actions/cache@v3
with:
path: clover-eclipse-libs/target/download
key: ${{ runner.os }}-eclipse-${{ hashFiles('clover-eclipse-libs/pom.xml') }}

- name: Cache IDEA binaries
id: cache-idea
uses: actions/cache@v3
with:
path: clover-idea-libs/target/download
key: ${{ runner.os }}-idea-${{ hashFiles('clover-idea-libs/pom.xml') }}

- name: Prepare third party libraries
run: |
mvn --batch-mode install -f clover-core-libs/jarjar/pom.xml
mvn --batch-mode install -Pworkspace-setup -f clover-core-libs/pom.xml
mvn --batch-mode install -Pworkspace-setup -f clover-eclipse-libs/pom.xml
mvn --batch-mode install -Pworkspace-setup -f clover-jtreemap/pom.xml
mvn --batch-mode install -Pworkspace-setup -f clover-idea-libs/pom.xml
- name: Download KTreemap fork
run: |
wget https://packages.atlassian.com/mvn/maven-atlassian-external/net/sf/jtreemap/ktreemap/1.1.0-atlassian-01/ktreemap-1.1.0-atlassian-01.jar
wget https://packages.atlassian.com/mvn/maven-atlassian-external/net/sf/jtreemap/ktreemap/1.1.0-atlassian-01/ktreemap-1.1.0-atlassian-01.pom
mvn --batch-mode install:install-file -Dfile=ktreemap-1.1.0-atlassian-01.jar -DpomFile=ktreemap-1.1.0-atlassian-01.pom
- name: Compile and pack all modules
run: |
mvn --batch-mode install -DskipTests=true
- name: Run tests for runtime, core, groovy, ant
run: |
mvn --batch-mode verify -pl clover-runtime,clover-core,clover-groovy,clover-ant
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
[![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/openclover/clover/A-build-and-test.yml?label=JDK8)](https://github.com/openclover/clover/actions/workflows/A-build-and-test.yml)
[![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/openclover/clover/A-build-and-test-jdk11.yml?label=JDK11)](https://github.com/openclover/clover/actions/workflows/A-build-and-test-jdk11.yml)
[![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/openclover/clover/A-build-and-test-jdk17.yml?label=JDK17)](https://github.com/openclover/clover/actions/workflows/A-build-and-test-jdk17.yml)
[![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/openclover/clover/A-build-and-test-jdk21.yml?label=JDK21)](https://github.com/openclover/clover/actions/workflows/A-build-and-test-jdk21.yml)


[![GitHub milestone details](https://img.shields.io/github/milestones/progress-percent/openclover/clover/11)](https://github.com/openclover/clover/milestone/11)
Expand Down

0 comments on commit 9490652

Please sign in to comment.