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 7f8245c1 update reusable WF
7f8245c1 is described below

commit 7f8245c1a99d37ef8b1586e9530c73a3b6f6c95b
Author: Lee Rhodes <[email protected]>
AuthorDate: Tue May 19 14:21:42 2026 -0700

    update reusable WF
---
 .github/workflows/reusable-jdk-os-matrix.yml | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/reusable-jdk-os-matrix.yml 
b/.github/workflows/reusable-jdk-os-matrix.yml
index a6dab44b..748e6e38 100644
--- a/.github/workflows/reusable-jdk-os-matrix.yml
+++ b/.github/workflows/reusable-jdk-os-matrix.yml
@@ -39,7 +39,7 @@ jobs:
     steps:
       # 1. Pull down the compiled workspace binaries from Phase 1
       - name: 1. Download Compiled Workspace Jars
-        uses: actions/download-artifact@v4
+        uses: actions/download-artifact@v8
         with:
           name: compiled-jars
 
@@ -77,17 +77,24 @@ jobs:
       - name: 5. Run Package Tests from jars via Target JVM Fork
         shell: bash
         run: |
+          # Dynamically detect if the host runner is Windows
+          if [[ "${{ inputs.os_type }}" == *"windows"* ]]; then
+            JAVA_EXE="$JAVA_HOME/bin/java.exe"
+          else
+            JAVA_EXE="$JAVA_HOME/bin/java"
+          fi
+
           if [ "${{ inputs.jdk_version }}" = "11" ]; then
             echo "Testing datasketches-memory-java11 jars for JDK version ${{ 
inputs.jdk_version }}..."
             mvn surefire:test -pl datasketches-memory-java11 \
               -Dmaven.test.classpath.useTestJar=true \
-              -Djvm=${{ steps.target-jdk.outputs.path }}/bin/java \
+              -Djvm="$JAVA_EXE" \
               -DargLine="${{ env.JVM_ARGS }}"
           else
             echo "Testing datasketches-memory-java17_21 jars for JDK version 
${{ inputs.jdk_version }}..."
             mvn surefire:test -pl datasketches-memory-java17_21 \
               -Dmaven.test.classpath.useTestJar=true \
-              -Djvm=${{ steps.target-jdk.outputs.path }}/bin/java \
+              -Djvm="$JAVA_EXE" \
               -DargLine="${{ env.JVM_ARGS }}"
           fi
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to