Skip to content

bugfix: aethersx2 - restore MESA_GLSL_VERSION_OVERRIDE for panfrost #314

bugfix: aethersx2 - restore MESA_GLSL_VERSION_OVERRIDE for panfrost

bugfix: aethersx2 - restore MESA_GLSL_VERSION_OVERRIDE for panfrost #314

Workflow file for this run

name: Freeze Check
on:
pull_request:
branches: [next]
types: [opened, synchronize, reopened, edited]
merge_group:
branches: [next]
jobs:
check-freeze:
runs-on: ubuntu-24.04
defaults:
run:
shell: bash
steps:
- name: Check if freeze is active
run: |
DAY=$(date +%d)
LAST_DAY=$(date -d "$(date +%Y-%m-01) +1 month -1 day" +%d)
FREEZE_START=$((LAST_DAY - 6))
if [ "$DAY" -ge "$FREEZE_START" ]; then
echo "🧊 Freeze is active (last 7 days of the month)."
echo "FREEZE=true" >> "$GITHUB_ENV"
else
echo "No freeze active."
echo "FREEZE=false" >> "$GITHUB_ENV"
fi
- name: Get PR title
if: env.FREEZE == 'true'
env:
GH_TOKEN: ${{ github.token }}
EVENT_PR_TITLE: ${{ github.event.pull_request.title }}
MG_HEAD_REF: ${{ github.event.merge_group.head_ref }}
run: |
if [[ "${{ github.event_name }}" == "merge_group" ]]; then
PR_NUMBER=$(grep -oE 'pr-[0-9]+' <<< "$MG_HEAD_REF" | cut -d- -f2)
if [[ -z "$PR_NUMBER" ]]; then
echo "❌ Could not extract PR number from ref: $MG_HEAD_REF"
exit 1
fi
TITLE=$(gh pr view "$PR_NUMBER" \
--repo "${{ github.repository }}" \
--json title \
--jq '.title')
if [[ -z "$TITLE" || "$TITLE" == "null" ]]; then
echo "❌ Could not fetch PR title for PR #$PR_NUMBER"
exit 1
fi
else
TITLE="$EVENT_PR_TITLE"
fi
printf 'PR_TITLE=%s\n' "$TITLE" >> "$GITHUB_ENV"
- name: Validate PR title
if: env.FREEZE == 'true'
run: |
PR_TITLE_TRIMMED="${PR_TITLE#"${PR_TITLE%%[![:space:]]*}"}"
if [[ ! "${PR_TITLE_TRIMMED,,}" =~ ^bugfix: ]]; then
echo "❌ Freeze is active. PR title must start with 'bugfix:'"
echo " Got: $PR_TITLE"
exit 1
fi
echo "✅ PR complies with freeze policy."