Skip to content

Commit

Permalink
Set element of matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdrz committed Nov 22, 2024
1 parent df92d8c commit c0d3b18
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/rust-target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,24 @@ jobs:
define-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.define-matrix.outputs.matrix }}
setup: ${{ steps.define-setup.outputs.setup }}

steps:
- uses: actions/checkout@v4

- name: Define Matrix
id: define-matrix
- name: Define Setup
id: define-setup
run: |
matrix=$(python ci/set_versions.py)
echo "matrix=$matrix" >> $GITHUB_OUTPUT
setup=$(python ci/set_versions.py)
echo "setup=$setup" >> $GITHUB_OUTPUT
test:
runs-on: ubuntu-latest
needs: [define-matrix]
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
matrix:
setup: ${{ fromJSON(needs.define-matrix.outputs.setup) }}
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit c0d3b18

Please sign in to comment.