83
83
COMMON_CMAKE_ARGS : ' -DBUILD_SHARED_LIBS=OFF -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra"'
84
84
MACOS_CMAKE_ARGS : >
85
85
-DCMAKE_BUILD_TYPE=MinSizeRel
86
- -DCMAKE_CXX_FLAGS_MINSIZEREL="-Os"
87
- -DCMAKE_C_FLAGS_MINSIZEREL="-Os"
88
86
-DCMAKE_CXX_COMPILER=g++-11
89
87
-DCMAKE_C_COMPILER=gcc-11
90
88
-DZSTD_STATIC_LINKING_ONLY=1
96
94
suffix : ' ${{ matrix.clang-version }}_${{ matrix.os }}-amd64'
97
95
steps :
98
96
- name : download patches
99
- # we download a tarball of this repo, as the presence of a .git directory leaks
100
- # the commit hash of this repository into the clang binaries
97
+ # We download a tarball of this repo, as the presence of a .git directory leaks
98
+ # The commit hash of this repository into the clang binaries
101
99
shell : bash
102
100
run : curl -L https://github.com/${{ github.repository }}/archive/${{ github.ref }}.tar.gz | tar xvz --strip 1
103
101
- name : get llvm-project
@@ -140,7 +138,7 @@ jobs:
140
138
if : ${{ ( matrix.clang-version == 9 || matrix.clang-version == 10 ) && matrix.os == 'windows' }}
141
139
shell : bash
142
140
run : patch ${{ matrix.release }}/llvm/cmake/config-ix.cmake windows-clang-9-10-trivially-copyable-mismatch.patch
143
- - name : patch cmake implicit link libraries on macosx
141
+ - name : patch cmake implicit link libraries on macOS
144
142
if : ${{ matrix.os == 'macosx' }}
145
143
shell : bash
146
144
run : |
@@ -160,13 +158,18 @@ jobs:
160
158
- name : print dependencies
161
159
if : ${{ matrix.os == 'macosx' }}
162
160
run : otool -L ${{ matrix.release }}/build/bin/clang-format
163
- - name : rename output binary
161
+ - name : rename output binary and test
164
162
run : |
165
163
cd ${{ matrix.release }}${{ matrix.bindir }}
166
164
mv clang-format${{ matrix.dotexe }} clang-format-${{ env.suffix }}${{ matrix.dotexe }}
167
165
mv clang-query${{ matrix.dotexe }} clang-query-${{ env.suffix }}${{ matrix.dotexe }}
168
166
mv clang-tidy${{ matrix.dotexe }} clang-tidy-${{ env.suffix }}${{ matrix.dotexe }}
169
167
mv clang-apply-replacements${{ matrix.dotexe }} clang-apply-replacements-${{ env.suffix }}${{ matrix.dotexe }}
168
+
169
+ ./clang-format-${{ env.suffix }}${{ matrix.dotexe }} --version
170
+ ./clang-query-${{ env.suffix }}${{ matrix.dotexe }} --version
171
+ ./clang-tidy-${{ env.suffix }}${{ matrix.dotexe }} --version
172
+ ./clang-apply-replacements-${{ env.suffix }}${{ matrix.dotexe }} --version
170
173
- name : create and print sha512sum
171
174
shell : bash
172
175
run : |
0 commit comments