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 a01551cc Clean up reusable workflow
a01551cc is described below
commit a01551cc69381226e17611d1584291f2e12c616d
Author: Lee Rhodes <[email protected]>
AuthorDate: Wed Jul 1 17:20:34 2026 -0700
Clean up reusable workflow
---
.github/workflows/reusable-jdk-os-matrix.yml | 54 +++++++++++++---------------
1 file changed, 24 insertions(+), 30 deletions(-)
diff --git a/.github/workflows/reusable-jdk-os-matrix.yml
b/.github/workflows/reusable-jdk-os-matrix.yml
index b0c10b10..8b6ab5e9 100644
--- a/.github/workflows/reusable-jdk-os-matrix.yml
+++ b/.github/workflows/reusable-jdk-os-matrix.yml
@@ -28,35 +28,26 @@ env:
jobs:
build:
- name: >
- Build (OS ${{ inputs.os_type }},
- JDK ${{ inputs.jdk_version }},
- CPU ${{ inputs.cpu_arch }},
- DIST ${{ inputs.jdk_distribution }}),
- JVM_ARGS ${{ inputs.jvm_args }}
runs-on: ${{ inputs.os_type }}
steps:
- # 1. Pull down the compiled workspace binaries from Phase 1
+ # Pull down the compiled workspace binaries from Phase 1
- name: 1. Download Compiled Workspace Jars
uses: actions/download-artifact@v8
with:
name: compiled-jars
- # 2. Print Workflows (Workspace metadata diagnostics)
- - name: 2. Print Current Workflows
+ - name: 2. Print Matrix Run Coordinates
continue-on-error: true
shell: bash
run: |
- echo "Checking for workflow files..."
- echo "--- Reusable Workflow (Local Workspace File): ---"
- cat .github/workflows/reusable-jdk-os-matrix.yml \
- || echo "::warning::Could not find Reusable Workflow file."
- echo "--- Caller Workflow (from current branch): ---"
- cat .github/workflows/auto-jdk-os-matrix.yml \
- || echo "::warning::Could not find Caller Workflow file on local
branch."
+ echo "=== Matrix Run Coordinates ==="
+ echo "Triggered by Repository: ${{ github.repository }}"
+ echo "Triggered by Ref/Branch: ${{ github.ref_name }}"
+ echo "Targeting OS: ${{ inputs.os_type }}"
+ echo "Targeting JDK: ${{ inputs.jdk_version }} (${{
inputs.jdk_distribution }}, ${{ inputs.cpu_arch }})"
- # 3. Provision ONLY the specific isolated JDK required for this test run
+ # Provision ONLY the specific isolated JDK required for this test run
- name: 3. Provision Target Isolated Execution JDK
id: target-jdk
uses: actions/setup-java@v5
@@ -66,7 +57,6 @@ jobs:
architecture: ${{ inputs.cpu_arch }}
check-latest: false
- # 4. Environment Verification
- name: 4. Verify Environment Context
shell: bash
run: |
@@ -75,7 +65,6 @@ jobs:
echo "--- Native Maven Boot Info: ---"
mvn -version -B
- # 5. Run the mutually exclusive tests targeted strictly to this version
- name: 5. Run Package Tests from jars via Target JVM Fork
shell: bash
run: |
@@ -100,21 +89,26 @@ jobs:
-DargLine="${{ env.JVM_ARGS }}"
fi
- # 6. Build unified Markdown Job Summary report table
- - name: 6. Add Result to Summary
- if: always()
+ # Build Markdown Job Summary report table for each iteration
+ - name: 6. Print Matrix Coordinate Summary
+ if: always() # Ensures it prints even if previous maven tests fail!
shell: bash
run: |
- # Define the header
- HEADER="| OS | Arch | JDK | DIST | Status |"
+ # Define and write the table structure
+ HEADER="| JDK | OS | Arch | DIST | Status |"
SEP="|----|------|-----|--------|-----|"
+ echo "$HEADER" >> $GITHUB_STEP_SUMMARY
+ echo "$SEP" >> $GITHUB_STEP_SUMMARY
- # Check if the header already exists in the summary file
- if ! grep -q "$HEADER" "$GITHUB_STEP_SUMMARY"; then
- echo "$HEADER" >> $GITHUB_STEP_SUMMARY
- echo "$SEP" >> $GITHUB_STEP_SUMMARY
+ # 2. Determine the status icon dynamically via Bash
+ STATUS_ICON="❌"
+ if [ "${{ job.status }}" = "success" ]; then
+ STATUS_ICON="✅"
fi
# Append the specific job row
- echo "| ${{ inputs.os_type }} | ${{ inputs.cpu_arch }} | ${{
inputs.jdk_version }} | ${{ inputs.jdk_distribution }} | ${{ job.status ==
'success' && '✅' || '❌' }} |" >> $GITHUB_STEP_SUMMARY
-
+ echo "| ${{ inputs.jdk_version }} \
+ | ${{ inputs.os_type }} \
+ | ${{ inputs.cpu_arch }} \
+ | ${{ inputs.jdk_distribution }} \
+ | $STATUS_ICON |" >> $GITHUB_STEP_SUMMARY
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]