[CI] Cleanup
Use new archive input to rework artifacts. Add runs-on and llvm_version inputs and ubuntu_base output to Lint so it can be passed to the Linux job. Remove broken config input. Upgrade Windows to VS2026.
This commit is contained in:
21
.github/workflows/Check_commit_message.yml
vendored
21
.github/workflows/Check_commit_message.yml
vendored
@@ -14,37 +14,36 @@ jobs:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Validate commit messages
|
||||
run: |
|
||||
run: |-
|
||||
BASE="${{ github.event.pull_request.base.sha }}"
|
||||
HEAD="${{ github.event.pull_request.head.sha }}"
|
||||
|
||||
COMMITS=$(git log --format="%H %s" "${BASE}..${HEAD}" --)
|
||||
COMMITS=$(git log --format='%H %s' "${BASE}..$HEAD" --)
|
||||
|
||||
if [ -z "${COMMITS}" ]; then
|
||||
if [ -z "$COMMITS" ]; then
|
||||
echo "No commits found in this PR."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
FAILED=0
|
||||
while IFS= read -r LINE; do
|
||||
SHA="${LINE%% *}"
|
||||
MSG="${LINE#* }"
|
||||
SHORT="${SHA::7}"
|
||||
|
||||
if echo "${MSG}" | grep -qP '^\[.+?\]'; then
|
||||
echo "✅ ${SHORT}: ${MSG}"
|
||||
if echo "$MSG" | grep -qP '^\[.+?\]'; then
|
||||
echo "✅ ${SHORT}: $MSG"
|
||||
else
|
||||
echo "❌ ${SHORT}: ${MSG}"
|
||||
echo "::error::Commit ${SHORT} is missing a [Tag] prefix. Expected format: [Tag] Description (e.g. [CPU] Fix overflow in JIT)"
|
||||
echo "❌ ${SHORT}: $MSG"
|
||||
echo "::error::Commit $SHORT is missing a [Tag] prefix. Expected format: [Tag] Description (e.g. [CPU] Fix overflow in JIT)"
|
||||
FAILED=1
|
||||
fi
|
||||
done <<< "${COMMITS}"
|
||||
|
||||
echo ""
|
||||
echo
|
||||
|
||||
if [ "${FAILED}" -eq 1 ]; then
|
||||
if [ -n "$FAILED" ]; then
|
||||
echo "::error::One or more commits are missing a [Tag] prefix."
|
||||
echo ""
|
||||
echo
|
||||
echo "Expected format: [Tag] Description"
|
||||
echo "Examples: [CPU] <commit message>"
|
||||
echo " [GPU] <commit message>"
|
||||
|
||||
Reference in New Issue
Block a user