|
|
@@ -913,100 +913,6 @@ jobs:
|
|
|
path: AIO-REJ.zip
|
|
|
if-no-files-found: ignore
|
|
|
|
|
|
- summary:
|
|
|
- if: ${{ !inputs.test_release_notes && always() }}
|
|
|
- runs-on: ubuntu-latest
|
|
|
- permissions:
|
|
|
- actions: write
|
|
|
- contents: read
|
|
|
- needs:
|
|
|
- - resolve-sources
|
|
|
- - build-android12-5-10
|
|
|
- - build-android13-5-10
|
|
|
- - build-android13-5-15
|
|
|
- - build-android14-5-15
|
|
|
- - build-android14-6-1
|
|
|
- - build-android15-6-6
|
|
|
- - build-android16-6-12
|
|
|
-
|
|
|
- steps:
|
|
|
- - name: Download All Build Summaries
|
|
|
- uses: actions/download-artifact@v7
|
|
|
- with:
|
|
|
- path: ./summaries
|
|
|
- pattern: '*-Summary'
|
|
|
- merge-multiple: true
|
|
|
-
|
|
|
- - name: 📋 Workflow Build Summary
|
|
|
- run: |
|
|
|
- {
|
|
|
- echo "# 📋 Build Summary — $(date -u '+%Y-%m-%d %H:%M UTC')"
|
|
|
- echo
|
|
|
- echo "**Feature Set:** ${{ needs.resolve-sources.outputs.feature_set }}"
|
|
|
- echo "**Root Flavor:** ${{ inputs.root_flavor || 'none' }}"
|
|
|
- echo "**Brand:** ${{ inputs.brand_name || 'Wild' }}"
|
|
|
- echo
|
|
|
-
|
|
|
- # Count successes and failures
|
|
|
- SUCCESS_COUNT=0
|
|
|
- FAIL_COUNT=0
|
|
|
-
|
|
|
- # Sort summaries so they appear in a consistent order
|
|
|
- for f in ./summaries/*.md; do
|
|
|
- [ -f "$f" ] || continue
|
|
|
- if grep -q "✅ Success" "$f"; then
|
|
|
- SUCCESS_COUNT=$((SUCCESS_COUNT + 1))
|
|
|
- else
|
|
|
- FAIL_COUNT=$((FAIL_COUNT + 1))
|
|
|
- fi
|
|
|
- done
|
|
|
-
|
|
|
- TOTAL=$((SUCCESS_COUNT + FAIL_COUNT))
|
|
|
- echo "**Results:** ${SUCCESS_COUNT}/${TOTAL} succeeded"
|
|
|
- if [ "$FAIL_COUNT" -gt 0 ]; then
|
|
|
- echo " - ❌ ${FAIL_COUNT} failed"
|
|
|
- fi
|
|
|
- echo
|
|
|
- echo "---"
|
|
|
- echo
|
|
|
-
|
|
|
- # Output each summary
|
|
|
- for f in ./summaries/*.md; do
|
|
|
- [ -f "$f" ] || continue
|
|
|
- cat "$f"
|
|
|
- echo
|
|
|
- echo "---"
|
|
|
- echo
|
|
|
- done
|
|
|
-
|
|
|
- echo
|
|
|
- echo "> **SUSFS Commits:**"
|
|
|
- echo "> - android12-5.10: ${{ needs.resolve-sources.outputs.susfs_commit_android12_5_10 }}"
|
|
|
- echo "> - android13-5.10: ${{ needs.resolve-sources.outputs.susfs_commit_android13_5_10 }}"
|
|
|
- echo "> - android13-5.15: ${{ needs.resolve-sources.outputs.susfs_commit_android13_5_15 }}"
|
|
|
- echo "> - android14-5.15: ${{ needs.resolve-sources.outputs.susfs_commit_android14_5_15 }}"
|
|
|
- echo "> - android14-6.1: ${{ needs.resolve-sources.outputs.susfs_commit_android14_6_1 }}"
|
|
|
- echo "> - android15-6.6: ${{ needs.resolve-sources.outputs.susfs_commit_android15_6_6 }}"
|
|
|
- echo "> - android16-6.12: ${{ needs.resolve-sources.outputs.susfs_commit_android16_6_12 }}"
|
|
|
- } >> "$GITHUB_STEP_SUMMARY"
|
|
|
-
|
|
|
- - name: 🧹 Cleanup Summary Files
|
|
|
- if: ${{ always() }}
|
|
|
- run: rm -rf ./summaries
|
|
|
-
|
|
|
- - name: 🧹 Delete Summary Artifacts
|
|
|
- if: ${{ always() }}
|
|
|
- env:
|
|
|
- GH_TOKEN: ${{ github.token }}
|
|
|
- run: |
|
|
|
- # Delete all *-Summary artifacts from this run since they're now consolidated
|
|
|
- RUN_ID="${{ github.run_id }}"
|
|
|
- ARTIFACTS=$(gh api "repos/${{ github.repository }}/actions/runs/${RUN_ID}/artifacts" --jq '.artifacts[] | select(.name | endswith("-Summary")) | .id')
|
|
|
- for id in $ARTIFACTS; do
|
|
|
- echo "Deleting summary artifact id=$id"
|
|
|
- gh api -X DELETE "repos/${{ github.repository }}/actions/artifacts/${id}" || true
|
|
|
- done
|
|
|
-
|
|
|
release:
|
|
|
runs-on: ubuntu-latest
|
|
|
if: ${{ github.event_name == 'workflow_dispatch' && !inputs.test_release_notes && (inputs.release_type == 'Pre-Release' || inputs.release_type == 'Release') }}
|