leerho commented on code in PR #274:
URL:
https://github.com/apache/datasketches-memory/pull/274#discussion_r2874057675
##########
.github/workflows/auto-jdk-os-matrix.yml:
##########
@@ -6,66 +6,31 @@ on:
branches: [ 'main', '[0-9]+.[0-9]+.[Xx]', 'v[0-9]+.[0-9]+.[Xx]']
pull_request:
paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/LICENSE',
'**/NOTICE' ]
- # The branches below must be a subset of the branches above
branches: [ 'main', '[0-9]+.[0-9]+.[Xx]', 'v[0-9]+.[0-9]+.[Xx]']
- workflow_dispatch:
+ workflow_dispatch:
-env:
- MAVEN_OPTS: -Xmx4g -Xms1g
- MAVEN_ARGS: "-B -Dmaven.javadoc.skip=true -Dgpg.skip=true"
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
jobs:
- build:
- name: Build, Test, Install
- runs-on: ${{ matrix.os }}
-
+ run-matrix:
strategy:
fail-fast: false
matrix:
jdk: [ 25 ]
os: [ windows-latest, ubuntu-latest, macos-latest ]
-
- steps:
- - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
- uses: actions/checkout@v4
- with:
- persist-credentials: false
-
- - name: Install Matrix JDK
- uses: actions/setup-java@v4
- with:
- java-version: ${{ matrix.jdk }}
- distribution: 'temurin'
- java-package: jdk
- architecture: x64
- cache: 'maven' # performance optimization
- overwrite-settings: true # ensures the runner's .m2/settings.xml is
current
-
- - 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 #also prints java-version
-
- - name: Print Current workflow
- run: cat .github/workflows/auto-jdk-os-matrix.yml
-
- - name: Test
- run: mvn clean test
-
- - name: Install
- run: mvn clean install "-DskipTests=true"
"-Dmaven.clean.failOnError=false" #windows os hack
-
-
-# Architecture options: x86, x64, armv7, aarch64, ppc64le
-# Lifecycle: validate, compile, test, package, verify, install, deploy
-# -B batch mode, never stops for user input
-# -V show Version without stopping
-# -X debug mode
-# -q quiet, only show errors
+ 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
Review Comment:
According to GitHub Docs, the reusable workflows (RWFs) can have the
location syntax:
{owner}/{repo}/.github/workflows/{filename}@{ref} #in a different repo
OR
./.github/workflows/{filename}@{ref} #in the same repo
where {ref} can be a branch, tag, or gitHash.
I would prefer having the RWFs in a separate branch ... or a common repo ...
hmm...
I have it in a separate branch here, but these RWFs would be identical to
what we would need for DS-Java.
Perhaps a better idea would be to put these in a "workflows" branch on
DS-Java. It would be a natural common place for all the various java repos.
Since trying to share RWFs across different languages may be too cumbersome.
Actually, I'd prefer if you would approve it here so I can test it. And then
if it works, I'll move the "workflows" directory to DS-Java, where it makes
more sense and can be leveraged by other DS-"java" repos, like hive, pig,
characterization, vector, server, etc (that is, if we want to upgrade them :) )
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]