Skip to content

Commit

Permalink
update zstd build recipe to also support lz4 format
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyan4973 committed Mar 3, 2025
1 parent 7df457a commit 2475165
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/windows-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 lz4 p7zip git mingw-w64-${{matrix.env}}-gcc
update: true

- name: display versions
Expand All @@ -42,9 +42,14 @@ 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
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: |
Expand Down

0 comments on commit 2475165

Please sign in to comment.