interplane.Get Omega
Read in your language

omega-gpu-bench

First-party Omega GPU kernel benchmark harness and receipts

Brought by drakestapleton

branch main Branches Tags History

omega-gpu-bench / .github / workflows / receipts.yml

32 lines · 1321 bytes Raw Blame History
1# receipts: the gate for a pull request that submits receipts. pull_request_target runs this file and
2# tools/ from the base branch; the pull request is checked out as data and none of it is executed.
3name: receipts
4on:
5 pull_request_target:
6permissions:
7 contents: read
8jobs:
9 gate:
10 runs-on: ubuntu-24.04-arm
11 timeout-minutes: 10
12 steps:
13 - name: trusted tools from the base branch
14 uses: actions/checkout@v4
15 with: {path: base, persist-credentials: false}
16 - name: the pull request, as data
17 uses: actions/checkout@v4
18 with:
19 path: pr
20 repository: ${{ github.event.pull_request.head.repo.full_name }}
21 ref: ${{ github.event.pull_request.head.sha }}
22 fetch-depth: 0
23 persist-credentials: false
24 - name: tools/pr_gate.py (append-only, base validator, sign-off)
25 env:
26 BASE: ${{ github.event.pull_request.base.sha }}
27 HEAD: ${{ github.event.pull_request.head.sha }}
28 SAME: ${{ github.event.pull_request.head.repo.full_name == github.repository && 'yes' || 'no' }}
29 REPO: ${{ github.repository }}
30 run: |
31 git -C pr fetch --quiet "https://github.com/$REPO" "$BASE"
32 python3 base/tools/pr_gate.py --pr pr --base "$BASE" --head "$HEAD" --same-repo "$SAME"