Skip to content

Commit 87f2dad

Browse files
committed
ci: run riscv64-linux jobs if ci-riscv64-linux label is applied
This needs to be a separate workflow so that it doesn't interfere with non-CI labeling of pull requests.
1 parent ac3229a commit 87f2dad

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: ci-pr-riscv64-linux
2+
on:
3+
pull_request:
4+
types:
5+
- labeled
6+
- opened
7+
- reopened
8+
- synchronize
9+
concurrency:
10+
# Cancels pending runs when a PR gets updated.
11+
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }}
12+
cancel-in-progress: true
13+
permissions:
14+
# Sets permission policy for `GITHUB_TOKEN`
15+
contents: read
16+
jobs:
17+
riscv64-linux-debug:
18+
if: contains(github.event.pull_request.labels.*.name, 'ci-riscv64-linux')
19+
timeout-minutes: 420
20+
runs-on: [self-hosted, Linux, riscv64]
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
- name: Build and Test
25+
run: sh ci/riscv64-linux-debug.sh
26+
riscv64-linux-release:
27+
if: contains(github.event.pull_request.labels.*.name, 'ci-riscv64-linux')
28+
timeout-minutes: 420
29+
runs-on: [self-hosted, Linux, riscv64]
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
- name: Build and Test
34+
run: sh ci/riscv64-linux-release.sh

0 commit comments

Comments
 (0)