fix: simplify matrix strategy, remove complex exclude expressions

The dynamic matrix exclude with ternary expressions caused workflow
validation failures. Simplify to always run all 3 OSes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
snomiao
2026-03-07 04:11:27 +00:00
parent ee5a207407
commit 6760013d2d

View File

@@ -7,11 +7,6 @@ on:
types: [opened, synchronize, labeled]
branches: [main]
workflow_dispatch:
inputs:
os:
description: 'OS to run on (all, ubuntu, macos, windows)'
required: false
default: 'all'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -28,13 +23,6 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
exclude:
- os: ${{ github.event.inputs.os == 'ubuntu' && 'macos-latest' || 'NONE' }}
- os: ${{ github.event.inputs.os == 'ubuntu' && 'windows-latest' || 'NONE' }}
- os: ${{ github.event.inputs.os == 'macos' && 'ubuntu-latest' || 'NONE' }}
- os: ${{ github.event.inputs.os == 'macos' && 'windows-latest' || 'NONE' }}
- os: ${{ github.event.inputs.os == 'windows' && 'ubuntu-latest' || 'NONE' }}
- os: ${{ github.event.inputs.os == 'windows' && 'macos-latest' || 'NONE' }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
permissions: