Skip to content

Commit

Permalink
fix: cuda feature and env
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburnham committed Mar 20, 2024
1 parent 1590e83 commit 5decfed
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/bench-pr-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ jobs:
if [[ ${{ env.GPU_BENCHMARK }} = 'true' || $(echo $FEATURES | grep -s cuda) ]]; then
echo "cuda=true" | tee -a $GITHUB_OUTPUT
COMMAND="gpu-benchmark"
# Add the "cuda" feature if not already specified
if echo "$FEATURES" | grep -vq "cuda" 2>/dev/null; then
FEATURES="${FEATURES},cuda"
fi
else
COMMAND="benchmark"
fi
Expand All @@ -122,12 +126,12 @@ jobs:
- name: Set env vars
run: |
# Trims newlines that may arise from `$GITHUB_OUTPUT`
for var in ${{ inputs.default-env }}
for var in "${{ inputs.default-env }}"
do
echo "$(echo $var | tr -d '\n')" | tee -a $GITHUB_ENV
done
# Overrides default env vars with those specified in the `issue_comment` input if identically named
for var in ${{ needs.setup.outputs.env-vars }}
for var in "${{ needs.setup.outputs.env-vars }}"
do
echo "$(echo $var | tr -d '\n')" | tee -a $GITHUB_ENV
done
Expand Down

0 comments on commit 5decfed

Please sign in to comment.