From e6faf85c97b3921f04e8c2fa6150a3470347843d Mon Sep 17 00:00:00 2001 From: Yohann Parisien <128382290+yohannparisiendailymotion@users.noreply.github.com> Date: Sat, 24 Feb 2024 15:54:18 +0100 Subject: [PATCH] Create matrix.yml --- .github/workflows/matrix.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/matrix.yml diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml new file mode 100644 index 0000000..cc570f1 --- /dev/null +++ b/.github/workflows/matrix.yml @@ -0,0 +1,17 @@ +name: matrix +on: workflow_dispatch +jobs: + job1: + runs-on: ubuntu-latest + outputs: + matrix: ${{ steps.set-matrix.outputs.matrix }} + steps: + - id: set-matrix + run: echo "matrix={\"include\":[{\"project\":\"foo\",\"config\":\"Debug\"},{\"project\":\"bar\",\"config\":\"Release\"}]}" >> $GITHUB_OUTPUT + job2: + needs: job1 + runs-on: ubuntu-latest + strategy: + matrix: ${{ fromJSON(needs.job1.outputs.matrix) }} + steps: + - run: build