Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 8 additions & 23 deletions .github/workflows/cpp-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ on:
branches:
- main
- release/*
- develop
types:
- opened
- synchronize
- reopened
- labeled
push:
branches:
- main
workflow_dispatch:

permissions:
Expand All @@ -32,31 +34,14 @@ jobs:
- name: Determine CI scope
id: check
run: |
BASE="${{ github.base_ref }}"
LABELS="${{ join(github.event.pull_request.labels.*.name, ',') }}"

# Trunk-based: full matrix (GCC + Clang + MSVC) on every PR / push to main.
echo "should_run=true" >> "$GITHUB_OUTPUT"

# Clang: build-clang label or main/release (always full)
if echo "$LABELS" | grep -qw "build-clang" || [[ "$BASE" != "develop" ]]; then
echo "run_clang=true" >> "$GITHUB_OUTPUT"
else
echo "run_clang=false" >> "$GITHUB_OUTPUT"
fi

# MSVC: build-msvc label or main/release (always full)
if echo "$LABELS" | grep -qw "build-msvc" || [[ "$BASE" != "develop" ]]; then
echo "run_msvc=true" >> "$GITHUB_OUTPUT"
else
echo "run_msvc=false" >> "$GITHUB_OUTPUT"
fi
echo "run_clang=true" >> "$GITHUB_OUTPUT"
echo "run_msvc=true" >> "$GITHUB_OUTPUT"

echo "--- CI Scope ---"
echo "Base branch: $BASE"
echo "Labels: $LABELS"
echo "GCC: always"
echo "Clang: $(echo "$LABELS" | grep -qE 'build-(clang|all-platform)' && echo 'yes' || { [[ "$BASE" != "develop" ]] && echo 'yes' || echo 'no'; })"
echo "MSVC: $(echo "$LABELS" | grep -qE 'build-(msvc|all-platform)' && echo 'yes' || { [[ "$BASE" != "develop" ]] && echo 'yes' || echo 'no'; })"
echo "Event: ${{ github.event_name }} ref: ${{ github.ref_name }}"
echo "Matrix: GCC + Clang + MSVC (full)"

linux-gcc:
name: Linux GCC
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/docker-build-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
- develop
paths:
- .github/workflows/docker-build-env.yml
- scripts/docker/Dockerfile.build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docs Check
on:
pull_request:
branches:
- develop
- main
types:
- opened
- synchronize
Expand Down
Loading