From dfe6536e26714ee1c37ae4a65b002f9848488020 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Fri, 10 Feb 2023 13:17:31 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20github:=20Use=20dynamic=20build?= =?UTF-8?q?=20matrix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 52f4ea4..fcdda31 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,6 +15,7 @@ jobs: outputs: core: ${{ steps.step1.outputs.core }} rest: ${{ steps.step1.outputs.rest }} + all: ${{ steps.step1.outputs.all }} steps: - name: Checkout @@ -25,6 +26,7 @@ jobs: run: | echo "core=$(./.github/list-subimages --core --json)" >>$GITHUB_OUTPUT echo "rest=$(./.github/list-subimages --rest --json)" >>$GITHUB_OUTPUT + echo "all=$(./.github/list-subimages --json)" >>$GITHUB_OUTPUT build-core: needs: matrix @@ -42,7 +44,7 @@ jobs: needs: build-core strategy: matrix: - subimage: ["dinglehopper"] + subimage: ${{ fromJson(needs.matrix.outputs.rest) }} uses: ./.github/workflows/build-subimage.yml with: subimage: ${{ matrix.subimage }} @@ -80,7 +82,7 @@ jobs: needs: test strategy: matrix: - subimage: ["core", "dinglehopper"] + subimage: ${{ fromJson(needs.matrix.outputs.all) }} uses: ./.github/workflows/build-subimage.yml with: subimage: ${{ matrix.subimage }}