Skip to content

Commit

Permalink
Attempt to fix matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Perksey committed Dec 21, 2024
1 parent eafcc9d commit 775be50
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ jobs:
build:
needs: [prerequisites]
strategy:
matrix: ${{ fromJSON(needs.prerequisites.outputs.matrix_strategy) }}
runs-on: ${{ startsWith(matrix.runtime, 'osx') && 'macos-latest' || startsWith(matrix.runtime, 'win') && 'windows-latest' || 'ubuntu-latest' }}
matrix:
flat: ${{ fromJSON(needs.prerequisites.outputs.matrix_strategy) }}
runs-on: ${{ startsWith(matrix.flat.runtime, 'osx') && 'macos-latest' || startsWith(matrix.flat.runtime, 'win') && 'windows-latest' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v3
- run: ${{ format('.{0}{1}', startsWith(matrix.runtime, 'win') && '\' || '/', matrix.exec) }}
working-directory: ${{ matrix.dir }}
- run: ${{ format('.{0}{1}', startsWith(matrix.flat.runtime, 'win') && '\' || '/', matrix.flat.exec) }}
working-directory: ${{ matrix.flat.dir }}

0 comments on commit 775be50

Please sign in to comment.