zig/.github/workflows/ci-pr-riscv64-linux.yaml
Alex Rønne Petersen d984e7d2fa
ci: trigger ci-pr-riscv64-linux workflow on unlabeled events
This way, if the ci-riscv64-linux label was added to a PR previously, removing
it will cause the concurrency group of the workflow to cancel the runs triggered
by the label being added.
2025-08-08 17:15:44 +02:00

36 lines
1017 B
YAML

name: ci-pr-riscv64-linux
on:
pull_request:
types:
- labeled
- opened
- reopened
- synchronize
- unlabeled
concurrency:
# Cancels pending runs when a PR gets updated.
group: riscv64-linux-${{ github.head_ref || github.run_id }}-${{ github.actor }}
cancel-in-progress: true
permissions:
# Sets permission policy for `GITHUB_TOKEN`
contents: read
jobs:
riscv64-linux-debug:
if: contains(github.event.pull_request.labels.*.name, 'ci-riscv64-linux')
timeout-minutes: 420
runs-on: [self-hosted, Linux, riscv64]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and Test
run: sh ci/riscv64-linux-debug.sh
riscv64-linux-release:
if: contains(github.event.pull_request.labels.*.name, 'ci-riscv64-linux')
timeout-minutes: 420
runs-on: [self-hosted, Linux, riscv64]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and Test
run: sh ci/riscv64-linux-release.sh