Skip to content

Commit ca15ce4

Browse files
Fix build-test workflow: use matrix.name in if condition
1 parent c67f903 commit ca15ce4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/build-test.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,15 @@ jobs:
2424
- platform: 'macos-latest'
2525
target: 'x86_64-apple-darwin'
2626
name: 'macos-x64'
27-
condition: ${{ github.event.inputs.platform == 'macos-x64' || github.event.inputs.platform == 'all' }}
2827
- platform: 'macos-latest'
2928
target: 'aarch64-apple-darwin'
3029
name: 'macos-arm64'
31-
condition: ${{ github.event.inputs.platform == 'macos-arm64' || github.event.inputs.platform == 'all' }}
3230
- platform: 'windows-latest'
3331
target: 'x86_64-pc-windows-msvc'
3432
name: 'windows-x64'
35-
condition: ${{ github.event.inputs.platform == 'windows-x64' || github.event.inputs.platform == 'all' }}
3633

3734
runs-on: ${{ matrix.platform }}
38-
if: ${{ matrix.condition }}
35+
if: github.event.inputs.platform == matrix.name || github.event.inputs.platform == 'all'
3936

4037
steps:
4138
- name: Checkout repository

0 commit comments

Comments
 (0)