Skip to content

update jdk for build of tracer #400

update jdk for build of tracer

update jdk for build of tracer #400

#
# Copyright (c) 2020, 2024 Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
# ---------------------------------------------------------------------------
# Coherence VisualVM Plugin GitHub Actions CI build.
# ---------------------------------------------------------------------------
name: Java CI - Released versions
on:
push:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version:
- 14.1.1-0-15
- 14.1.1-0-16
- 22.06.7
- 22.06.6
- 23.09
- 23.09.1
- 23.09.2
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Set up JDK 8 for Tracer Build
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'oracle'
- name: Build Tracer
shell: bash
run: |
./scripts/install-tracer-library.sh
- name: Set up JDK 11 for Build
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
- name: Print Versions
run: mvn -version && ant -version
- name: Build
shell: bash
run: |
mvn --file pom.xml --batch-mode -e -DskipTests clean install
- name: Verify
shell: bash
run: |
echo "Running verify ${{ matrix.version }}"
mvn --file coherence-visualvm-tests/coherence-visualvm-tests-ce/pom.xml --batch-mode -e -Dcoherence.version=${{ matrix.version }} clean install
- name: Build Artifacts test logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: test-output
path: coherence-visualvm-tests/**/target/test-output/**/*
- name: Coherence VisualVM Plugin NBM
uses: actions/upload-artifact@v3
with:
name: coherence-visualvm-plugin-nbm
path: coherence-visualvm-plugin/target/coherence-visualvm-plugin*.nbm
- name: Coherence VisualVM Plugin Javadoc
uses: actions/upload-artifact@v3
with:
name: coherence-visualvm-plugin-javadoc
path: coherence-visualvm-plugin/target/coherence-visualvm-plugin*javadoc.jar