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 98f6aaff Add reusable jds os matrix logic
98f6aaff is described below

commit 98f6aaff820f6e1d2b00800500c2090fc90b5ea8
Author: Lee Rhodes <[email protected]>
AuthorDate: Thu Feb 26 17:52:51 2026 -0800

    Add reusable jds os matrix logic
---
 .github/workflows/reusable-jdk-os-matrix.yml | 56 ++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/.github/workflows/reusable-jdk-os-matrix.yml 
b/.github/workflows/reusable-jdk-os-matrix.yml
index e69de29b..1242a56a 100644
--- a/.github/workflows/reusable-jdk-os-matrix.yml
+++ b/.github/workflows/reusable-jdk-os-matrix.yml
@@ -0,0 +1,56 @@
+name: Reusable JDK OS Matrix Logic
+
+on:
+  workflow_call:
+    inputs:
+      jdk_version:
+        required: true
+        type: string
+      os_type:
+        required: true
+        type: string
+      java_arch:
+        required: true
+        type: string
+
+env:
+  MAVEN_OPTS: -Xmx4g -Xms1g
+  MAVEN_ARGS: "-B -Dmaven.javadoc.skip=true -Dgpg.skip=true"
+
+jobs:
+  build:
+    name: Build (${{ inputs.os_type }}, JDK ${{ inputs.jdk_version }}, ${{ 
inputs.java_arch }})
+    runs-on: ${{ inputs.os_type }}
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+
+      - name: Install Matrix JDK
+        uses: actions/setup-java@v4
+        with:
+          java-version: ${{ inputs.jdk_version }}
+          distribution: 'temurin'
+          java-package: jdk
+          architecture: ${{ inputs.java_arch }}
+          cache: 'maven'
+          overwrite-settings: true
+
+      - name: Verify Toolchain Configuration
+        shell: bash
+        run: |
+          if [ -f ~/.m2/toolchains.xml ]; then
+            cat ~/.m2/toolchains.xml
+          else
+            echo "toolchains.xml not found in ~/.m2/"
+          fi
+
+      - name: Echo Java & Maven Version
+        run: mvn -version
+
+      - name: Test
+        run: mvn clean test
+
+      - name: Install
+        run: mvn clean install "-DskipTests=true" 
"-Dmaven.clean.failOnError=false"


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

Reply via email to