Skip to content

Commit

Permalink
ci: bop
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertRosca committed Jan 25, 2024
1 parent 1c727bb commit 57aea8b
Showing 1 changed file with 31 additions and 11 deletions.
42 changes: 31 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}"

0 comments on commit 57aea8b

Please sign in to comment.