Skip to content

Commit

Permalink
No script
Browse files Browse the repository at this point in the history
  • Loading branch information
JoergAtGithub committed Jun 9, 2024
1 parent b911c9d commit 2268771
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/vectorization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,23 @@ jobs:
shell: bash
run: |
if [[ "${{ runner.os }}" == "Windows" ]]; then
OUTPUT=$(pwsh -File ./tools/check_vectorization.ps1 "${{ matrix.config.compiler }}" "${{ matrix.config.flags }}" "${{ env.FILE }}")
OUTPUT=$(pwsh -c "& '${{ matrix.config.compiler }}' ${matrix.config.flags} '${{ env.FILE }}'")
echo "result=$OUTPUT" >> $GITHUB_ENV
else
OUTPUT=$(./tools/check_vectorization.sh "${{ matrix.config.compiler }}" ${matrix.config.flags} "${{ env.FILE }}")
OUTPUT=$("${{ matrix.config.compiler }}" ${matrix.config.flags} "${{ env.FILE }}")
echo "result=$OUTPUT" >> $GITHUB_ENV
fi
- name: Print vectorization result
id: check
shell: bash
run: |
if [[ "${{ runner.os }}" == "Windows" ]]; then
echo "result=$OUTPUT" >> $GITHUB_ENV
else
echo "result=$OUTPUT" >> $GITHUB_ENV
fi
- name: Print result
run: echo "${{ env.result }}"

Expand Down

0 comments on commit 2268771

Please sign in to comment.