1
0
mirror of https://git.code.sf.net/p/zint/code synced 2025-12-17 18:07:02 +00:00

CI: Windows: try ZLIB_ROOT

This commit is contained in:
gitlost
2025-09-16 22:05:54 +01:00
parent e5d9aa7cb6
commit f30a58c6f6

View File

@@ -117,12 +117,13 @@ jobs:
git clone --depth=1 https://github.com/madler/zlib.git zlib && cd zlib git clone --depth=1 https://github.com/madler/zlib.git zlib && cd zlib
cmake -B build -DCMAKE_BUILD_TYPE=Release -DZLIB_BUILD_TESTING=OFF -DZLIB_BUILD_SHARED=OFF -DZLIB_BUILD_MINIZIP=OFF -DZLIB_INSTALL_COMPAT_DLL=OFF cmake -B build -DCMAKE_BUILD_TYPE=Release -DZLIB_BUILD_TESTING=OFF -DZLIB_BUILD_SHARED=OFF -DZLIB_BUILD_MINIZIP=OFF -DZLIB_INSTALL_COMPAT_DLL=OFF
cmake --build build --config Release cmake --build build --config Release
cmake -E rename build\Release\zs.lib zlib.lib
- name: Install libpng - name: Install libpng
shell: bash shell: bash
run: | run: |
git clone --depth=1 https://git.code.sf.net/p/libpng/code lpng && cd lpng git clone --depth=1 https://git.code.sf.net/p/libpng/code lpng && cd lpng
cmake -B build -DCMAKE_BUILD_TYPE=Release -DPNG_SHARED=OFF -DPNG_TESTS=OFF -DPNG_TOOLS=OFF cmake -B build -DCMAKE_BUILD_TYPE=Release -DPNG_SHARED=OFF -DPNG_TESTS=OFF -DPNG_TOOLS=OFF -DZLIB_ROOT="..\zlib"
cmake --build build --config Release cmake --build build --config Release
- name: Configure CMake - name: Configure CMake