From 9c674990331d0be00274222b594a73afbeb8f105 Mon Sep 17 00:00:00 2001 From: gitlost Date: Tue, 16 Sep 2025 20:30:45 +0100 Subject: [PATCH] CI: Windows: try zlib again --- .github/workflows/ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7405513f..c7ff355a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: run: sudo apt-get install libpng-dev - name: Install GS1 Syntax Engine - run: git clone https://github.com/gs1/gs1-syntax-engine && cd gs1-syntax-engine/src/c-lib && make CFLAGS_G='-DEXCLUDE_SYNTAX_DICTIONARY_LOADER' lib && sudo make install + run: git clone --depth=1 https://github.com/gs1/gs1-syntax-engine && cd gs1-syntax-engine/src/c-lib && make CFLAGS_G='-DEXCLUDE_SYNTAX_DICTIONARY_LOADER' lib && sudo make install - name: Install locale shell: bash @@ -70,7 +70,7 @@ jobs: run: sudo apt-get install libpng-dev - name: Install GS1 Syntax Engine - run: git clone https://github.com/gs1/gs1-syntax-engine && cd gs1-syntax-engine/src/c-lib && make CFLAGS_G='-DEXCLUDE_SYNTAX_DICTIONARY_LOADER' lib && sudo make install + run: git clone --depth=1 https://github.com/gs1/gs1-syntax-engine && cd gs1-syntax-engine/src/c-lib && make CFLAGS_G='-DEXCLUDE_SYNTAX_DICTIONARY_LOADER' lib && sudo make install - name: Install locale shell: bash @@ -111,6 +111,13 @@ jobs: shell: bash run: git config --global --add safe.directory ${GITHUB_WORKSPACE} && cmake -E make_directory build + - name: Install zlib + shell: bash + run: | + 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 -DZLIB_INSTALL=OFF + cmake --build build --config Release && cmake -E rename build\zs.lib zlib.lib && cmake -E rename build\zconf.h zconf.h + - name: Configure CMake working-directory: build shell: bash @@ -162,7 +169,7 @@ jobs: run: git config --global --add safe.directory ${GITHUB_WORKSPACE} && cmake -E make_directory build - name: Install GS1 Syntax Engine - run: git clone https://github.com/gs1/gs1-syntax-engine && cd gs1-syntax-engine/src/c-lib && make CFLAGS_G='-DEXCLUDE_SYNTAX_DICTIONARY_LOADER' lib && (sudo make install || true) + run: git clone --depth=1 https://github.com/gs1/gs1-syntax-engine && cd gs1-syntax-engine/src/c-lib && make CFLAGS_G='-DEXCLUDE_SYNTAX_DICTIONARY_LOADER' lib && (sudo make install || true) - name: Configure CMake working-directory: build