Skip to content

Commit

Permalink
seperated blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
JoergAtGithub committed Jun 9, 2024
1 parent a0c3669 commit 659e35c
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/vectorization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,25 @@ jobs:
sudo apt-get install -y ${{ matrix.config.compiler }}
fi
- name: Compile and check vectorization
id: check
- name: Compile and check vectorization on Windows
if: runner.os == 'Windows'
id: check_windows
shell: pwsh
working-directory: ${{ github.workspace }}
run: |
if ("${{ matrix.config.compiler }}" -eq "gcc") {
$OUTPUT = & "${{ matrix.config.compiler }}" "${{ matrix.config.flags }}" "${{ matrix.fileset }}"
echo "result=$OUTPUT" >> $env:GITHUB_ENV
}
- name: Compile and check vectorization on Linux/Mac
if: runner.os != 'Windows'
id: check_unix
shell: bash
working-directory: ${{ github.workspace }}
run: |
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
OUTPUT=$("${{ matrix.config.compiler }}" "${{ matrix.config.flags }}" "${{ matrix.fileset }}")
echo "result=$OUTPUT" >> $GITHUB_ENV
- name: Print vectorization results
id: evaluate
Expand Down

0 comments on commit 659e35c

Please sign in to comment.