Skip to content

Commit 0448e84

Browse files
Copilothyf0
andcommitted
ci: simplify cargo-test platform matrix
Co-authored-by: hyf0 <[email protected]>
1 parent b30acdc commit 0448e84

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,7 @@ jobs:
9090
needs: changes
9191
strategy:
9292
matrix:
93-
target:
94-
- ubuntu-latest
95-
- ${{ github.ref_name == 'main' && 'macos-latest' || '' }}
96-
- ${{ github.ref_name == 'main' && 'windows-latest' || '' }}
97-
exclude:
98-
- target: ''
93+
target: ${{ github.ref_name == 'main' && fromJSON('["ubuntu-latest","macos-latest","windows-latest"]') || fromJSON('["ubuntu-latest"]') }}
9994
uses: ./.github/workflows/reusable-cargo-test.yml
10095
with:
10196
os: ${{ matrix.target }}

0 commit comments

Comments
 (0)