Skip to content

Commit 07ccd4e

Browse files
Run workflows on PRs to enable community contribs (#23)
* CI on PR * push
1 parent 1ec18eb commit 07ccd4e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build-llamacpp-rocm.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ on:
2424
default: true
2525
type: boolean
2626

27+
# Trigger on pushes to pull requests
28+
pull_request:
29+
types: [opened, synchronize, reopened]
30+
2731
# Trigger on a schedule to build nightly releases
2832
schedule:
2933
# Runs at 1:00 PM UTC, which is 5:00 AM PST (UTC-8)
@@ -1047,6 +1051,7 @@ jobs:
10471051
(needs.build-windows.result == 'success' || needs.build-ubuntu.result == 'success') &&
10481052
(needs.test-windows-gfx1151.result == 'success' || needs.test-windows-gfx1151.result == 'skipped') &&
10491053
(needs.test-ubuntu-gfx1151.result == 'success' || needs.test-ubuntu-gfx1151.result == 'skipped') &&
1054+
github.event_name != 'pull_request' &&
10501055
(github.event_name == 'workflow_dispatch' &&
10511056
(github.event.inputs.create_release == 'true' || github.event.inputs.create_release == null) ||
10521057
github.event_name == 'schedule')
@@ -1196,4 +1201,4 @@ jobs:
11961201
**Build Date**: $(date -u '+%Y-%m-%d %H:%M:%S UTC')
11971202
11981203
This release includes compiled llama.cpp binaries with ROCm support for multiple GPU targets and operating systems, with all essential ROCm runtime libraries included." \
1199-
$upload_files
1204+
$upload_files

0 commit comments

Comments
 (0)