Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
outputs:
cpython_tag: ${{ steps.info.outputs.cpython_tag }}
nanvix_sha: ${{ steps.info.outputs.nanvix_sha }}
short_sha: ${{ steps.info.outputs.short_sha }}
steps:
- name: Determine Release Info
id: info
Expand Down Expand Up @@ -61,10 +62,22 @@ jobs:
NANVIX_SHA=$(echo "$CPYTHON_TAG" | sed -E 's/.*-nanvix-([a-f0-9]+)$/\1/' || echo "")
fi

# Prefer Nanvix SHA for build identification; fallback to CPython tag prefix.
SOURCE_SHA="$NANVIX_SHA"
if [[ -z "$SOURCE_SHA" ]]; then
SOURCE_SHA="$CPYTHON_TAG"
fi
SHORT_SHA=$(echo "$SOURCE_SHA" | sed -E 's/^([a-f0-9]{7,40}).*/\1/' | cut -c1-7)
if [[ -z "$SHORT_SHA" ]]; then
SHORT_SHA="unknown"
fi

echo "cpython_tag=$CPYTHON_TAG" >> "$GITHUB_OUTPUT"
echo "nanvix_sha=$NANVIX_SHA" >> "$GITHUB_OUTPUT"
echo "short_sha=$SHORT_SHA" >> "$GITHUB_OUTPUT"
echo "CPython tag: $CPYTHON_TAG"
echo "Nanvix SHA: $NANVIX_SHA"
echo "Short SHA: $SHORT_SHA"

test:
needs: get-release-info
Expand Down Expand Up @@ -137,7 +150,7 @@ jobs:
uses: softprops/action-gh-release@v2
with:
tag_name: runtime-${{ needs.get-release-info.outputs.cpython_tag }}
name: Runtime artifacts for ${{ needs.get-release-info.outputs.cpython_tag }}
name: Build ${{ needs.get-release-info.outputs.short_sha }}
body: |
Runtime artifacts generated by CI after successful tests.

Expand Down