From 57aea8b44ecefbac7ee0f36854771f49179e91db Mon Sep 17 00:00:00 2001 From: Robert Rosca <32569096+RobertRosca@users.noreply.github.com> Date: Thu, 25 Jan 2024 17:22:17 +0100 Subject: [PATCH] ci: bop --- .github/workflows/build.yml | 42 +++++++++++++++++++++++++++---------- 1 file changed, 31 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 87ab618c..36a6fea8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ jobs: find-recipes: runs-on: ubuntu-latest outputs: - matrix: ${{ steps.set-matrix.outputs.matrix }} + packages: ${{ steps.find-recipes.outputs.packages }} steps: - name: Checkout Repository @@ -19,26 +19,46 @@ jobs: format: 'json' - name: Find recipe.yaml files + id: find-recipes run: | changed=$(jq -c '[.[] | match("custom-recipes/recipes/([^/]*)/recipe.yaml") | .captures | .[].string]' <<< '${{steps.changed.outputs.added_modified}}') changed=$(echo $changed | sed "s/\"//g") - echo matrix=$changed - echo "matrix=$changed" >> "$GITHUB_OUTPUT" + echo "packages=\"$changed\"" + echo "packages=\"$changed\"" >> "$GITHUB_OUTPUT" - build: + buildc: + needs: find-recipes + runs-on: ubuntu-latest + + steps: + - name: Foo + run: | + echo "${{needs.find-recipes.outputs.packages}}" + echo "package: ${{fromJson(needs.find-recipes.outputs.packages)}}" + + + builda: needs: find-recipes runs-on: ubuntu-latest strategy: matrix: - package: ${{fromJson(needs.find-recipes.outputs.matrix)}} - # package: ${{needs.find-recipes.outputs.matrix}} - # package: ${{ needs.find-recipes.outputs.* }} + package: ${{fromJson(needs.find-recipes.outputs.packages)}} steps: - - name: Checkout Repository - uses: actions/checkout@v2 - - name: Foo run: | - echo ${{ matrix.package }} + echo "${{needs.find-recipes.outputs.packages}}" + echo "${{ matrix.packages }}" + buildb: + needs: find-recipes + runs-on: ubuntu-latest + strategy: + matrix: + package: ${{needs.find-recipes.outputs.packages}} + + steps: + - name: Foo + run: | + echo "${{needs.find-recipes.outputs.packages}}" + echo "${{ matrix.packages }}"