Skip to content

Support wildcards in instance-to-host transfers #8415

Support wildcards in instance-to-host transfers

Support wildcards in instance-to-host transfers #8415

Workflow file for this run

name: Dynamic CI
on:
push:
branches:
- main
- release/[0-9]+.[0-9]+
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
merge_group:
types: [checks_requested]
permissions:
contents: read
checks: write
actions: read
packages: write
statuses: write
jobs:
filter:
name: Filter changed files
runs-on: ubuntu-slim
permissions:
contents: read
pull-requests: read
outputs:
docs: ${{ steps.filter.outputs.docs }}
code: ${{ steps.filter.outputs.code }}
hooks: ${{ steps.filter.outputs.hooks }}
is-tag: ${{ steps.check-tag.outputs.is-tag }}
cli-tests: ${{ steps.filter.outputs.cli-tests }}
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 0
fetch-tags: true
- name: Check if we're building a tagged commit
id: check-tag
# detect tags regardless of workflow trigger
run: |
tag="$( git tag --points-at HEAD )"
echo "is-tag=$( [ -n "$tag" ] && echo true || echo false )" >> "$GITHUB_OUTPUT"
- name: Detect changed files
if: ${{ steps.check-tag.outputs.is-tag != 'true' }}
id: filter
uses: dorny/paths-filter@v4
with:
# 'base' and 'ref' are ignored for pull requests
# For merge group events, compare against the target branch (main)
base: ${{ github.event.merge_group.base_ref }}
# For merge group events, use the merge group head ref
ref: ${{ github.event.merge_group.head_ref }}
filters: |
docs:
- '.github/workflows/automatic-doc-checks.yml'
- 'docs/**'
code:
- ".github/workflows/linux*"
- ".github/workflows/macos.yml"
- ".github/workflows/windows.yml"
- ".github/.codecov.yml"
- ".clang-tidy"
- "3rd-party/**"
- "completions/**"
- "data/*"
- "debian/**"
- "include/**"
- "packaging/**"
- "snap/**"
- "snap-wrappers/**"
- "src/**"
- "rxx/**"
- "tests/**"
- ".gitmodules"
- "CMakeLists.txt"
- "vcpkg-configuration.json"
- "vcpkg.json"
cli-tests:
- 'tests/cli/**'
- 'tests/cli-test-ut/**'
- '.github/workflows/cli-tests-ut.yml'
hooks:
- "git-hooks/**"
docs:
name: Docs
needs: filter
if: needs.filter.outputs.docs == 'true'
uses: "./.github/workflows/automatic-doc-checks.yml"
lint:
name: Lint
needs: filter
uses: "./.github/workflows/lint.yml"
linux:
name: Linux
needs: filter
if: needs.filter.outputs.code == 'true' || needs.filter.outputs.is-tag == 'true'
uses: "./.github/workflows/linux.yml"
secrets: inherit
macos:
name: macOS
needs: filter
if: needs.filter.outputs.code == 'true' || needs.filter.outputs.is-tag == 'true'
uses: "./.github/workflows/macos.yml"
secrets: inherit
windows:
name: Windows
needs: filter
if: needs.filter.outputs.code == 'true' || needs.filter.outputs.is-tag == 'true'
uses: "./.github/workflows/windows.yml"
secrets: inherit
hooks:
name: Hooks
needs: filter
if: needs.filter.outputs.hooks == 'true'
uses: "./.github/workflows/test-hooks.yml"
cli-tests-ut:
name: Unit tests for cli-test harness
needs: filter
if: needs.filter.outputs.cli-tests == 'true'
uses: "./.github/workflows/cli-tests-ut.yml"
finalize:
name: Finalize
runs-on: ubuntu-slim
if: ${{ always() }}
needs: [docs, lint, linux, windows, macos, hooks, cli-tests-ut]
steps:
- name: Docs failure check
if: ${{
needs.docs.result == 'failure' || needs.docs.result == 'cancelled'
}}
run: exit 1
- name: Compilation failure check
if: ${{
needs.lint.result == 'failure' || needs.lint.result == 'cancelled' ||
needs.linux.result == 'failure' || needs.linux.result == 'cancelled' ||
needs.windows.result == 'failure' || needs.windows.result == 'cancelled' ||
needs.macos.result == 'failure' || needs.macos.result == 'cancelled'
}}
run: exit 1
- name: Hooks failure check
if: ${{ needs.hooks.result == 'failure' || needs.hooks.result == 'cancelled' }}
run: exit 1
- name: CLI tests failure check
if: ${{ needs.cli-tests-ut.result == 'failure' || needs.cli-tests-ut.result == 'cancelled' }}
run: exit 1