Skip to content

Commit

Permalink
fileset files
Browse files Browse the repository at this point in the history
  • Loading branch information
JoergAtGithub committed Jun 9, 2024
1 parent 35cb227 commit 49ada45
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/vectorization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
flags: "-O3 -Rpass=loop-vectorize",
}
- { os: windows-latest, compiler: cl, flags: "/O2 /Qvec-report:2" }
fileset_matrix:
fileset:
- ["src/util/sample.cpp", "src/util/sample.h"]
steps:
- name: "Check out repository"
Expand All @@ -47,17 +47,17 @@ jobs:
id: check
shell: bash
run: |
FILESET_MATRIX=${{ toJson(matrix.fileset_matrix) }}
for FILESET in $(echo "$FILESET_MATRIX" | jq -r '.[]'); do
FILES=${{ toJson(matrix.fileset) }}
for FILES in $(echo "$FILESET" | jq -r '.[]'); do
if [[ "${{ runner.os }}" == "Windows" ]]; then
shell: pwsh
run: |
if ("${{ matrix.config.compiler }}" -eq "gcc") {
$OUTPUT = & "${{ matrix.config.compiler }}" "${{ matrix.config.flags }}" "$FILESET"
$OUTPUT = & "${{ matrix.config.compiler }}" "${{ matrix.config.flags }}" "$FILES"
echo "result=$OUTPUT" >> $env:GITHUB_ENV
}
else
OUTPUT=$("${{ matrix.config.compiler }}" "${{ matrix.config.flags }}" "$FILESET")
OUTPUT=$("${{ matrix.config.compiler }}" "${{ matrix.config.flags }}" "$FILES")
echo "result=$OUTPUT" >> $GITHUB_ENV
fi
done
Expand Down

0 comments on commit 49ada45

Please sign in to comment.