Skip to content

Commit 68d1e3c

Browse files
committed
chore: Trigger cmake-multi-platform on PRs for updating llama.cpp.
1 parent c08b9b4 commit 68d1e3c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/cmake-multi-platform.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ on:
77
branches: [ "main" ]
88
pull_request:
99
branches: [ "main" ]
10+
workflow_dispatch:
11+
inputs:
12+
ref:
13+
description: 'Git ref to build'
14+
required: false
15+
default: ''
1016

1117
jobs:
1218
build:
@@ -56,6 +62,7 @@ jobs:
5662
- uses: actions/checkout@v4
5763
with:
5864
submodules: recursive
65+
ref: ${{ inputs.ref || github.ref }}
5966

6067
- name: Set reusable strings
6168
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.

.github/workflows/update-llama-cpp.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
permissions:
1313
contents: write
1414
pull-requests: write
15+
actions: write
1516

1617
steps:
1718
- uses: actions/checkout@v4
@@ -87,3 +88,6 @@ jobs:
8788
*This PR was automatically created by the update-llama-cpp workflow.*" \
8889
--base main \
8990
--head "$BRANCH_NAME"
91+
92+
# Trigger CI workflow on the new branch
93+
gh workflow run "CMake on multiple platforms" --ref "$BRANCH_NAME"

0 commit comments

Comments
 (0)