File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # ┌─────────────────────────────────────────────────────────────────┐
2- # │ IMPORTANT: This file MUST stay in sync with │
3- # │ pub-python-wheels.yml. The only expected differences are the │
4- # │ workflow name and the cisco-actions/* mirror references. │
5- # │ Do NOT accept PRs where these files diverge in any other way. │
6- # └─────────────────────────────────────────────────────────────────┘
1+ # ##################################################################
2+ # IMPORTANT: This file MUST stay in sync with
3+ # pub-python-wheels.yml. The only expected differences are the
4+ # workflow name and the cisco-actions/* mirror references.
5+ # Do NOT accept PRs where these files diverge in any other way.
6+ # ##################################################################
77name : " [EMU] Python Wheels"
88
99on :
1313 - main
1414
1515jobs :
16+ sync-self-check :
17+ name : Sync self-check
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@v6
21+ - name : Check diff between emu and pub workflow files
22+ run : |
23+ MAX_DIFF_LINES=4
24+ COUNT=$(diff -y --suppress-common-lines .github/workflows/emu-python-wheels.yml .github/workflows/pub-python-wheels.yml | wc -l)
25+ echo "Differing lines: $COUNT (max allowed: $MAX_DIFF_LINES)"
26+ if [ "$COUNT" -gt "$MAX_DIFF_LINES" ]; then
27+ echo "::error::emu-python-wheels.yml and pub-python-wheels.yml have diverged ($COUNT differing lines, max $MAX_DIFF_LINES)"
28+ diff .github/workflows/emu-python-wheels.yml .github/workflows/pub-python-wheels.yml || true
29+ exit 1
30+ fi
31+
1632 build-mercury-wheels :
33+ needs : sync-self-check
1734 name : Build wheels on ${{ matrix.os }}
1835 runs-on : ${{ matrix.os }}
1936 environment :
Original file line number Diff line number Diff line change 1- # ┌─────────────────────────────────────────────────────────────────┐
2- # │ IMPORTANT: This file MUST stay in sync with │
3- # │ emu-python-wheels.yml. The only expected differences are the │
4- # │ workflow name and the cisco-actions/* mirror references. │
5- # │ Do NOT accept PRs where these files diverge in any other way. │
6- # └─────────────────────────────────────────────────────────────────┘
1+ # ##################################################################
2+ # IMPORTANT: This file MUST stay in sync with
3+ # emu-python-wheels.yml. The only expected differences are the
4+ # workflow name and the cisco-actions/* mirror references.
5+ # Do NOT accept PRs where these files diverge in any other way.
6+ # ##################################################################
77name : " [PUB] Python Wheels"
88
99on :
1313 - main
1414
1515jobs :
16+ sync-self-check :
17+ name : Sync self-check
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@v6
21+ - name : Check diff between emu and pub workflow files
22+ run : |
23+ MAX_DIFF_LINES=4
24+ COUNT=$(diff -y --suppress-common-lines .github/workflows/emu-python-wheels.yml .github/workflows/pub-python-wheels.yml | wc -l)
25+ echo "Differing lines: $COUNT (max allowed: $MAX_DIFF_LINES)"
26+ if [ "$COUNT" -gt "$MAX_DIFF_LINES" ]; then
27+ echo "::error::emu-python-wheels.yml and pub-python-wheels.yml have diverged ($COUNT differing lines, max $MAX_DIFF_LINES)"
28+ diff .github/workflows/emu-python-wheels.yml .github/workflows/pub-python-wheels.yml || true
29+ exit 1
30+ fi
31+
1632 build-mercury-wheels :
33+ needs : sync-self-check
1734 name : Build wheels on ${{ matrix.os }}
1835 runs-on : ${{ matrix.os }}
1936 environment :
You can’t perform that action at this time.
0 commit comments