mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-21 03:48:45 +00:00
Due to the restrictions on instance provisioning for self-hosted runners, performing static checks (36 jobs at the time of writing) on them each time a PR is updated could significantly burden them, consequently slowing down the entire CI system. To address this, the decision is to trigger these checks only when an 'ok-to-test' label is added. Meanwhile, the checks for x86_64, which are supported by GitHub-hosted runners, will remain unchanged. Fixes: #8998 Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
27 lines
653 B
YAML
27 lines
653 B
YAML
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
- labeled # a workflow runs only when the 'ok-to-test' label is added
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
name: Static checks self-hosted
|
|
jobs:
|
|
build-checks:
|
|
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
instance:
|
|
- "arm-no-k8s"
|
|
- "s390x"
|
|
- "ppc64le"
|
|
uses: ./.github/workflows/build-checks.yaml
|
|
with:
|
|
instance: ${{ matrix.instance }}
|