Skip to content

Commit

Permalink
Don't wrap build matrix in "include{}" to avoid hard coding into the …
Browse files Browse the repository at this point in the history
…script.
  • Loading branch information
jrhemstad committed May 30, 2023
1 parent 958fa09 commit 606fdd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_new_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
id: compute-matrix
run: |
cat ./ci/matrix.yaml
BUILD_MATRIX=$(yq -o=json ./ci/matrix.yaml | jq -c '[.include[] | . as $o | {std: .std[]} + del($o.std)] | {include: . }' )
BUILD_MATRIX=$(yq -o=json ./ci/matrix.yaml | jq -c '[.include[] | . as $o | {std: .std[]} + del($o.std)]' )
echo "BUILD_MATRIX=$BUILD_MATRIX" | tee -a "$GITHUB_OUTPUT"
PER_CUDA_MATRIX=$(./ci/get_groups.sh $BUILD_MATRIX cuda)
echo "PER_CUDA_MATRIX=$PER_CUDA_MATRIX" | tee -a "$GITHUB_OUTPUT"
Expand Down
2 changes: 1 addition & 1 deletion ci/get_groups.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ fi
input_json="$1"
field="$2"

output=$(echo $input_json | jq -L . -c --arg field "$field" 'include "group_by_field"; .include | group_by_field($field)')
output=$(echo $input_json | jq -L . -c --arg field "$field" 'include "group_by_field"; group_by_field($field)')
echo $output

0 comments on commit 606fdd8

Please sign in to comment.