This is an automated email from the ASF dual-hosted git repository.
leerho pushed a commit to branch workflows
in repository https://gitbox.apache.org/repos/asf/datasketches-memory.git
The following commit(s) were added to refs/heads/workflows by this push:
new 7c33027e update reusable workflow
7c33027e is described below
commit 7c33027e06868383c57334b72b492b972de71412
Author: Lee Rhodes <[email protected]>
AuthorDate: Sat May 16 13:28:33 2026 -0700
update reusable workflow
---
.github/workflows/reusable-jdk-os-matrix.yml | 60 ++++++++++++++--------------
1 file changed, 30 insertions(+), 30 deletions(-)
diff --git a/.github/workflows/reusable-jdk-os-matrix.yml
b/.github/workflows/reusable-jdk-os-matrix.yml
index 5a849247..71533dd1 100644
--- a/.github/workflows/reusable-jdk-os-matrix.yml
+++ b/.github/workflows/reusable-jdk-os-matrix.yml
@@ -41,41 +41,46 @@ jobs:
with:
persist-credentials: false
- - name: Checkout Workflow Logic (workflows branch)
- uses: actions/checkout@v6
+ # 1. ALWAYS install Host JDK 25 to execute Maven itself natively
+ - name: Install Host Driver JDK 25
+ uses: actions/setup-java@v5
with:
- ref: workflows
- path: .github/workflow-logic
+ java-version: '25'
+ distribution: 'temurin'
+ cache: 'maven'
- - name: Install Matrix JDK
+ # 2. Dynamically provision the Target isolated execution JDK
+ - name: Provision Target Execution JDK
+ id: target-jdk
uses: actions/setup-java@v5
with:
- java-version: |
- 8
- 11
- 17
- 21
- 25
+ java-version: ${{ inputs.jdk_version }}
+ distribution: ${{ inputs.jdk_distribution }}
architecture: ${{ inputs.cpu_arch }}
- distribution: 'zulu' #${{ inputs.jdk_distribution }}
- java-package: jdk
- cache: 'maven'
- check-latest: false
- generate-job-summary: true
- # overwrite-settings: true
- - name: Verify Toolchain Configuration
+ - name: Echo Java & Maven Version
+ run: mvn -version
+
+ # 3. Clean and build all artifacts, inserting them into the local
reactor build path
+ - name: Build and Local Install via Host JVM
+ run: mvn clean install -DskipTests=true
+
+ # 4. Execute module verification tests directly from packaged jars using
target JVM fork
+ - name: Run Package Tests via Target JVM Fork
shell: bash
run: |
- if [ -f ~/.m2/toolchains.xml ]; then
- cat ~/.m2/toolchains.xml
+ if [ "${{ inputs.jdk_version }}" = "11" ]; then
+ mvn surefire:test -pl datasketches-memory-java11 \
+ -Dmaven.test.classpath.useTestJar=true \
+ -Djvm=${{ steps.target-jdk.outputs.path }}/bin/java \
+ -DargLine="${{ env.JVM_ARGS }}"
else
- echo "toolchains.xml not found in ~/.m2/"
+ mvn surefire:test -pl datasketches-memory-java17_21 \
+ -Dmaven.test.classpath.useTestJar=true \
+ -Djvm=${{ steps.target-jdk.outputs.path }}/bin/java \
+ -DargLine="${{ env.JVM_ARGS }}"
fi
- - name: Echo Java & Maven Version
- run: mvn -version
-
- name: Print Current Workflows
continue-on-error: true
run: |
@@ -87,12 +92,7 @@ jobs:
echo "--- JVM ARGS ---"
echo "${{ env.JVM_ARGS }}"
- - name: Test
- run: mvn clean test -DargLine="${{ env.JVM_ARGS }}"
-
- - name: Install
- run: mvn clean install "-DskipTests=true"
"-Dmaven.clean.failOnError=false" "-DargLine=${{ env.JVM_ARGS }}"
-
+ # 5. Build Summary Generation
- name: Add Result to Summary
if: always()
shell: bash
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]