Skip to content

Commit 8101104

Browse files
committed
ci: run riscv64-linux jobs if ci-riscv64-linux label is applied
1 parent 0d0f09f commit 8101104

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: ci
22
on:
33
pull_request:
4+
types:
5+
- labeled
6+
- opened
7+
- reopened
8+
- synchronize
49
push:
510
branches:
611
- master
@@ -51,7 +56,7 @@ jobs:
5156
- name: Build and Test
5257
run: sh ci/aarch64-linux-release.sh
5358
riscv64-linux-debug:
54-
if: github.event_name == 'push'
59+
if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'ci-riscv64-linux')
5560
timeout-minutes: 420
5661
runs-on: [self-hosted, Linux, riscv64]
5762
steps:
@@ -60,7 +65,7 @@ jobs:
6065
- name: Build and Test
6166
run: sh ci/riscv64-linux-debug.sh
6267
riscv64-linux-release:
63-
if: github.event_name == 'push'
68+
if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'ci-riscv64-linux')
6469
timeout-minutes: 420
6570
runs-on: [self-hosted, Linux, riscv64]
6671
steps:

0 commit comments

Comments
 (0)