Skip to content

Commit d3584fa

Browse files
committed
fix: let specific version pass test
1 parent e793f88 commit d3584fa

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

.github/workflows/python-test.yml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,26 +81,45 @@ jobs:
8181
- name: Install clang-tools
8282
run: clang-tools --install ${{ matrix.version }}
8383

84-
- name: show path of binaries
84+
- name: Show path of binaries
8585
shell: bash
8686
run: |
87-
which clang-format-${{ matrix.version }}
88-
which clang-tidy-${{ matrix.version }}
87+
if [ "${{ matrix.version }}" = "15" -a "${{ matrix.os }}" = "windows-latest" ]; then
88+
which clang-format
89+
which clang-tidy
90+
elif [ "${{ matrix.version }}" = "12.0.1" ]; then
91+
which clang-format-12
92+
which clang-tidy-12
93+
else
94+
which clang-format-${{ matrix.version }}
95+
which clang-tidy-${{ matrix.version }}
96+
fi
8997
9098
- name: Check clang-tools on Windows
9199
if: matrix.os == 'windows-latest'
100+
shell: bash
92101
run: |
93-
clang-format-${{ matrix.version }}.exe --version
94-
clang-tidy-${{ matrix.version }}.exe --version
102+
if [ "${{ matrix.version }}" = "15" ]; then
103+
clang-format.exe --version
104+
clang-tidy.exe --version
105+
else
106+
clang-format-${{ matrix.version }}.exe --version
107+
clang-tidy-${{ matrix.version }}.exe --version
108+
fi
95109
96110
- name: Check clang-tools on Unix
97111
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
98112
run: |
99-
clang-format-${{ matrix.version }} --version
100-
if [ "${{ matrix.version }}" = "14" -o "${{ matrix.version }}" = "15" ]; then
101-
echo "skip version ${{ matrix.version }} because Segmentation fault on ubuntu."
113+
if [ "${{ matrix.version }}" = "12.0.1" ]; then
114+
clang-format-12 --version
115+
clang-tidy-12 --version
102116
else
103-
clang-tidy-${{ matrix.version }} --version
117+
clang-format-${{ matrix.version }} --version
118+
if [ "${{ matrix.version }}" = "14" -o "${{ matrix.version }}" = "15" ]; then
119+
echo "skip version ${{ matrix.version }} because Segmentation fault on ubuntu."
120+
else
121+
clang-tidy-${{ matrix.version }} --version
122+
fi
104123
fi
105124
106125
docs:

0 commit comments

Comments
 (0)