Skip to content

Commit b91bd8a

Browse files
committed
flash-attn CI: run on PRs to gfx11, upload only on push
Adds pull_request trigger so PRs targeting gfx11 exercise the build, and gates the upload-wheel job on github.event_name == 'push' so PR runs validate the build without populating the S3 index. Signed-off-by: Matthias Gehre <matthias.gehre@amd.com>
1 parent c972b7b commit b91bd8a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/build-flash-attn-wheels.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ on:
2626
push:
2727
branches:
2828
- gfx11
29+
pull_request:
30+
branches:
31+
- gfx11
2932

3033
env:
3134
PYTORCH_INDEX_URL: 'https://rocm.nightlies.amd.com/v2-staging/gfx1151'
@@ -203,7 +206,7 @@ jobs:
203206
upload-wheel:
204207
needs: build-wheel
205208
runs-on: ubuntu-latest
206-
if: github.repository_owner == 'ROCm'
209+
if: github.event_name == 'push' && github.repository_owner == 'ROCm'
207210
permissions:
208211
id-token: write
209212
contents: read

0 commit comments

Comments
 (0)