]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
update zstd build recipe to also support lz4 format
authorYann Collet <cyan@fb.com>
Mon, 3 Mar 2025 22:27:43 +0000 (14:27 -0800)
committerYann Collet <cyan@fb.com>
Mon, 3 Mar 2025 23:36:38 +0000 (15:36 -0800)
.github/workflows/windows-artifacts.yml

index 79e910b576a064f03eef47ccc738cda6214930e4..0394ec983047c8cc1597ebf95687c4b516b017a5 100644 (file)
@@ -29,7 +29,7 @@ jobs:
     - uses: msys2/setup-msys2@61f9e5e925871ba6c9e3e8da24ede83ea27fa91f # tag=v2.27.0
       with:
         msystem: ${{ matrix.msystem }}
-        install: make zlib p7zip git mingw-w64-${{matrix.env}}-gcc
+        install: make zlib mingw-w64-x86_64-lz4 p7zip git mingw-w64-${{matrix.env}}-gcc
         update: true
 
     - name: display versions
@@ -42,9 +42,16 @@ jobs:
         git clone --depth 1 --branch v1.3.1 https://github.com/madler/zlib
         make -C zlib -f win32/Makefile.gcc libz.a
 
+    - name: Building lz4 to static link
+      run: |
+        git clone --depth 1 --branch v1.10.0 https://github.com/lz4/lz4
+        # ensure both libraries use the same version of libxxhash
+        cp lib/common/xxhash.* lz4/lib
+        CPPFLAGS=-DXXH_NAMESPACE=LZ4_ make -C lz4/lib liblz4.a V=1
+
     - name: Building zstd programs
       run: |
-        CPPFLAGS=-I../zlib LDLIBS=../zlib/libz.a LDFLAGS=-static make -j allzstd V=1
+        CPPFLAGS="-I../zlib -I../lz4/lib" LDLIBS="../zlib/libz.a ../lz4/lib/liblz4.a" LDFLAGS=-static make -j allzstd V=1
 
     - name: Create artifacts
       run: |