Skip to content

Commit

Permalink
fix yq filter to match cpp name
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed May 3, 2024
1 parent b279d34 commit 220fab0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build-rapids.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@ jobs:
###
filters=(${{ matrix.libs }});
# prefix each element
filters=("${filters[@]/#/'.name == "'}");
filters=("${filters[@]/#/'"'}");
# suffix each element
filters=("${filters[@]/%/'" or'}");
sudo yq -i ".repos |= filter(${filters[*]} false)" /opt/rapids-build-utils/manifest.yaml;
filters=("${filters[@]/%/'",'}");
# Remove trailing comma
filters="$(cut -d',' -f1-${#filters[@]} <<< "${filters[*]}")";
sudo yq -i ".repos |= filter(.cpp[].name | contains(${filters[*]}))" /opt/rapids-build-utils/manifest.yaml;
# Regenerate builds scripts after modifying /opt/rapids-build-utils/manifest.yaml
rapids-generate-scripts;
Expand Down

0 comments on commit 220fab0

Please sign in to comment.