diff --git a/.github/workflows/test_new_workflow.yml b/.github/workflows/test_new_workflow.yml index 108ad6da1f..4ee78bb54d 100644 --- a/.github/workflows/test_new_workflow.yml +++ b/.github/workflows/test_new_workflow.yml @@ -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" diff --git a/ci/get_groups.sh b/ci/get_groups.sh index 275759017d..e7c0c256c5 100755 --- a/ci/get_groups.sh +++ b/ci/get_groups.sh @@ -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