Skip to content

Commit 37bb1b7

Browse files
authored
Add -DZLIB_USE_STATIC_LIBS=ON to MACOS_CMAKE_ARGS (#50)
* fix: install zlib on macos for v18+ * fix: add -DZLIB_USE_STATIC_LIBS=ON * fix: install zlib and export it's path * test: remove rest versions for quick test * fix: update build.yml * fix: add more varibles * test: update macos to macos-13 * test: update macos to macos-15 * Update build.yml * Update build.yml * Update build.yml * update build.yml * Update build.yml * Update build.yml * Update build.yml * Update build.yml * Update build.yml * Update build.yml * Update build.yml * Update build.yml * Update build.yml * chore: change if condition
1 parent 227e64e commit 37bb1b7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ jobs:
8787
-DCMAKE_C_COMPILER=gcc-11
8888
-DZSTD_STATIC_LINKING_ONLY=1
8989
-DLLVM_ENABLE_ASSERTIONS=OFF
90+
-DZLIB_USE_STATIC_LIBS=ON
9091
LINUX_CMAKE_ARGS: '-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_CXX_COMPILER=g++-10 -DCMAKE_C_COMPILER=gcc-10'
9192
RELEASE: '${{ matrix.release }}'
9293
suffix: '${{ matrix.clang-version }}_${{ matrix.os }}-amd64'
@@ -166,8 +167,10 @@ jobs:
166167
167168
./clang-format-${{ env.suffix }}${{ matrix.dotexe }} --version
168169
./clang-query-${{ env.suffix }}${{ matrix.dotexe }} --version
170+
file ./clang-tidy-${{ env.suffix }}${{ matrix.dotexe }}
169171
./clang-tidy-${{ env.suffix }}${{ matrix.dotexe }} --version
170172
./clang-apply-replacements-${{ env.suffix }}${{ matrix.dotexe }} --version
173+
continue-on-error: true # continue to publish when clang-tidy 18+ failed on MacOS
171174
- name: Create and print sha512sum
172175
shell: bash
173176
run: |
@@ -182,15 +185,15 @@ jobs:
182185
cat clang-tidy-${{ env.suffix }}.sha512sum
183186
cat clang-apply-replacements-${{ env.suffix }}.sha512sum
184187
- name: Upload artifacts
185-
if: ${{ github.actor != 'dependabot[bot]' }} || github.event_name != 'pull_request'
188+
if: github.event_name != 'pull_request'
186189
uses: actions/upload-artifact@v4
187190
with:
188191
name: clang-tools-${{ matrix.release }}-${{ env.suffix }}
189192
path: "${{ matrix.release }}${{ matrix.bindir }}/clang-*-${{ env.suffix }}*"
190193
retention-days: 1
191194
draft-release:
192195
runs-on: ubuntu-22.04
193-
if: ${{ github.actor != 'dependabot[bot]' }} || github.event_name != 'pull_request'
196+
if: github.event_name != 'pull_request'
194197
needs: build
195198
steps:
196199
- name: Download artifacts

0 commit comments

Comments
 (0)