This is an automated email from the ASF dual-hosted git repository.

leerho pushed a commit to branch 3.0.X
in repository https://gitbox.apache.org/repos/asf/datasketches-memory.git


The following commit(s) were added to refs/heads/3.0.X by this push:
     new d0a653d6 Update workflows to work with /main/
d0a653d6 is described below

commit d0a653d6807ff4e99aa4b83da762a2095c27c6c6
Author: Lee Rhodes <[email protected]>
AuthorDate: Sat Mar 28 16:49:10 2026 -0700

    Update workflows to work with /main/
---
 .github/workflows/auto-jdk-matrix.yml    | 65 --------------------------
 .github/workflows/auto-jdk-os-matrix.yml | 36 +++++++++++++++
 .github/workflows/javadoc.yml            |  9 ++--
 .github/workflows/manual-os-matrix.yml   | 78 --------------------------------
 4 files changed, 42 insertions(+), 146 deletions(-)

diff --git a/.github/workflows/auto-jdk-matrix.yml 
b/.github/workflows/auto-jdk-matrix.yml
deleted file mode 100644
index 8d0ff117..00000000
--- a/.github/workflows/auto-jdk-matrix.yml
+++ /dev/null
@@ -1,65 +0,0 @@
-name: DataSketches-Memory Auto JDK Matrix Test & Install
-
-on:
-    pull_request:
-    push:
-        branches: [ master ]
-    workflow_dispatch:
-
-env:
-    MAVEN_OPTS: -Xmx4g -Xms1g
-
-jobs:
-    build:
-        name: Build, Test, Install
-        runs-on: macOS-latest
-
-        strategy:
-          fail-fast: false
-
-        steps:
-        - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
-          uses: actions/checkout@v4
-          with:
-              persist-credentials: false
-
-        - name: Cache local Maven repository
-          uses: actions/cache@v4
-          with:
-              path: ~/.m2/repository
-              key: build-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
-              restore-keys: build-${{ runner.os }}-maven-
-
-        - name: Install Matrix JDK
-          uses: actions/setup-java@v4
-          with:
-              java-version: |
-                  8
-                  11
-              distribution: 'temurin'
-              java-package: jdk
-              architecture: x64 
-
-        - name: Echo Java Version
-          run: >
-              java -version
-
-        - name: Test
-          run: >
-              mvn clean test -B
-              -Dmaven.javadoc.skip=true
-              -Dgpg.skip=true
-
-        - name: Install
-          run: >
-              mvn clean install -B
-              -DskipTests=true
-              -Dgpg.skip=true
-
-# Architecture options: x86, x64, armv7, aarch64, ppc64le
-# setup-java@v3 has a "with cache" option
-# Lifecycle: validate, compile, test, package, verify, install, deploy
-# -B batch mode
-# -V show Version without stopping
-# -X debug mode
-# -q quiet, only show errors
diff --git a/.github/workflows/auto-jdk-os-matrix.yml 
b/.github/workflows/auto-jdk-os-matrix.yml
new file mode 100644
index 00000000..ed180f0e
--- /dev/null
+++ b/.github/workflows/auto-jdk-os-matrix.yml
@@ -0,0 +1,36 @@
+name: Auto JDK & OS Matrix Test & Install
+
+on:
+  push:
+    paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/LICENSE', 
'**/NOTICE' ]
+    branches: [ 'main', '[0-9]+.[0-9]+.[Xx]', 'v[0-9]+.[0-9]+.[Xx]']
+  pull_request:
+    paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/LICENSE', 
'**/NOTICE' ]
+    branches: [ 'main', '[0-9]+.[0-9]+.[Xx]', 'v[0-9]+.[0-9]+.[Xx]']
+  workflow_dispatch:
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
+jobs:
+  run-matrix:
+    strategy:
+      fail-fast: false
+      matrix:
+        jdk: [ 8 ]
+        os: [ windows-latest, ubuntu-latest, macos-latest ]
+        include:
+          - os: windows-latest
+            arch: x64
+          - os: ubuntu-latest
+            arch: x64
+          - os: macos-latest
+            arch: aarch64
+
+    # Reference the reusable workflow on the "workflows" branch
+    uses: 
apache/datasketches-memory/.github/workflows/reusable-jdk-os-matrix.yml@workflows
+    with:
+      jdk_version: ${{ matrix.jdk }}
+      os_type: ${{ matrix.os }}
+      java_arch: ${{ matrix.arch }}
diff --git a/.github/workflows/javadoc.yml b/.github/workflows/javadoc.yml
index a28042c3..feaa56eb 100644
--- a/.github/workflows/javadoc.yml
+++ b/.github/workflows/javadoc.yml
@@ -9,9 +9,9 @@ on:
   workflow_dispatch:
     inputs:
       tag_ref:
-        description: 'Existing Git Tag to deploy (e.g., 1.0.0), 
default=99.0.0:'
+        description: 'Existing Git Tag to deploy (e.g., 1.0.0):'
         required: true
-        default: '99.0.0' # unlikely to conflict if accidentally left blank.
+        default: '99.0.0' # unlikely to conflict if accidentally used. Can be 
left blank
 
 jobs:
   build-and-deploy-javadoc:
@@ -20,7 +20,7 @@ jobs:
       contents: write
 
     steps:
-      - name: Checkout Code at Specified Tag
+      - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
         uses: actions/checkout@v5
         with:
           ref: ${{ github.event.inputs.tag_ref }}  # from manual trigger input
@@ -31,7 +31,10 @@ jobs:
         with:
           java-version: '8'
           distribution: 'temurin'
+          java-package: jdk
+          architecture: x64
           cache: 'maven'
+          overwrite-settings: true  # ensures the runner's .m2/settings.xml is 
current
 
       - name: Build and Generate Javadoc  # POM is configured to output to 
target/site/apidocs
         run: mvn clean javadoc:javadoc
diff --git a/.github/workflows/manual-os-matrix.yml 
b/.github/workflows/manual-os-matrix.yml
deleted file mode 100644
index 64674443..00000000
--- a/.github/workflows/manual-os-matrix.yml
+++ /dev/null
@@ -1,78 +0,0 @@
-name: DataSketches-Memory Manual OS Matrix Test & Install
-
-on:
-    workflow_dispatch:
-
-env:
-    MAVEN_OPTS: -Xmx4g -Xms1g
-
-jobs:
-    build:
-        name: Build, Test, Install
-
-        strategy:
-          fail-fast: false
-
-          matrix:
-            jdk: [ 8, 11 ]
-            os: [ windows-latest, ubuntu-latest, macos-latest ]
-            include:
-              - os: windows-latest
-                skip_javadoc: "`-Dmaven`.javadoc`.skip=true"
-                skip_gpg: "`-Dgpg`.skip=true"
-              - os: ubuntu-latest
-                skip_javadoc: -Dmaven.javadoc.skip=true
-                skip_gpg: -Dgpg.skip=true
-              - os: macos-latest
-                skip_javadoc: -Dmaven.javadoc.skip=true
-                skip_gpg: -Dgpg.skip=true
-
-        runs-on: ${{matrix.os}}
-
-        env:
-          JDK_VERSION: ${{ matrix.jdk }}
-
-        steps:
-        - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
-          uses: actions/checkout@v4
-          with:
-              persist-credentials: false
-
-        - name: Cache local Maven repository
-          uses: actions/cache@v4
-          with:
-              path: ~/.m2/repository
-              key: build-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
-              restore-keys: build-${{ runner.os }}-maven-
-
-        - name: Install Matrix JDK
-          uses: actions/setup-java@v4
-          with:
-              java-version: ${{ matrix.jdk }}
-              distribution: 'temurin'
-              java-package: jdk
-              architecture: x64 
-# Architecture options: x86, x64, armv7, aarch64, ppc64le
-# setup-java@v3 has a "with cache" option
-
-        - name: Echo Java Version
-          run: >
-              java -version
-
-        - name: Test
-          run: >
-              mvn clean test
-              ${{matrix.os.skip_javadoc}}
-              ${{matrix.os.skip_gpg}}
-
-        - name: Install
-          run: >
-              mvn clean install -B
-              ${{matrix.os.skip_javadoc}}
-              -D skipTests=true
-              ${{matrix.os.skip_gpg}}
-
-# Lifecycle: validate, compile, test, package, verify, install, deploy
-# -B batch mode
-# -V show Version without stopping
-# -q quiet, only show errors


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

Reply via email to