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

commit 31f77026f3403ce7571a01efd7745d7406aad889
Author: Lee Rhodes <[email protected]>
AuthorDate: Mon May 18 12:43:57 2026 -0700

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

diff --git a/.github/workflows/reusable-jdk-os-matrix.yml 
b/.github/workflows/reusable-jdk-os-matrix.yml
index 7285d616..d7ff16ff 100644
--- a/.github/workflows/reusable-jdk-os-matrix.yml
+++ b/.github/workflows/reusable-jdk-os-matrix.yml
@@ -60,6 +60,25 @@ jobs:
           architecture: ${{ inputs.cpu_arch }}
           check-latest: false #append this JDK version into runner's toolchain
 
+      - name: Configure local toolchains.xml
+        shell: bash
+        run: |
+          mkdir -p ~/.m2
+          cat <<EOF > ~/.m2/toolchains.xml
+          <?xml version="1.0" encoding="UTF-8"?>
+          <toolchains>
+            <toolchain>
+              <type>jdk</type>
+              <provides>
+                <version>${{ inputs.jdk_version }}</version>
+              </provides>
+              <configuration>
+                <jdkHome>${{ steps.target-jdk.outputs.path }}</jdkHome>
+              </configuration>
+            </toolchain>
+          </toolchains>
+          EOF
+          
       - name: Echo Java & Maven Version
         run: mvn -version
 


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

Reply via email to