Skip to content

Commit

Permalink
no array
Browse files Browse the repository at this point in the history
  • Loading branch information
JoergAtGithub committed Jun 9, 2024
1 parent 6cf9cd8 commit a0c3669
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/vectorization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
}
- { os: windows-latest, compiler: cl, flags: "/O2 /Qvec-report:2" }
fileset:
- ["src/util/sample.cpp", "src/util/sample.h"]
- "src/util/sample.cpp src/util/sample.h"
steps:
- name: "Check out repository"
uses: actions/[email protected]
Expand All @@ -48,18 +48,17 @@ jobs:
shell: bash
working-directory: ${{ github.workspace }}
run: |
FILESET=${{ toJson(matrix.fileset) }}
if [[ "${{ runner.os }}" == "Windows" ]]; then
shell: pwsh
run: |
if ("${{ matrix.config.compiler }}" -eq "gcc") {
$OUTPUT = & "${{ matrix.config.compiler }}" "${{ matrix.config.flags }}" "$FILESET"
echo "result=$OUTPUT" >> $env:GITHUB_ENV
}
else
OUTPUT=$("${{ matrix.config.compiler }}" "${{ matrix.config.flags }}" "$FILESET")
echo "result=$OUTPUT" >> $GITHUB_ENV
fi
if [[ "${{ runner.os }}" == "Windows" ]]; then
shell: pwsh
run: |
if ("${{ matrix.config.compiler }}" -eq "gcc") {
$OUTPUT = & "${{ matrix.config.compiler }}" "${{ matrix.config.flags }}" "${{ matrix.fileset }}"
echo "result=$OUTPUT" >> $env:GITHUB_ENV
}
else
OUTPUT=$("${{ matrix.config.compiler }}" "${{ matrix.config.flags }}" "${{ matrix.fileset }}")
echo "result=$OUTPUT" >> $GITHUB_ENV
fi
- name: Print vectorization results
id: evaluate
Expand Down

0 comments on commit a0c3669

Please sign in to comment.