Skip to content

Commit

Permalink
Fix libzstd builder to produce shippable artifacts
Browse files Browse the repository at this point in the history
* we don't ship the programs (zstd.exe), so there is no need to build
  them
* we're fine with additionally shipping include/zdict.h and lib/cmake/
* we also ship the library PDBs
  • Loading branch information
cmb69 committed Dec 4, 2024
1 parent 316680d commit 9cfd9a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/libzstd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ jobs:
- name: Patch libzstd
run: cd libzstd && git apply --ignore-whitespace ..\winlib-builder\patches\libzstd.patch
- name: Configure libzstd
run: cd libzstd\build\cmake && cmake -G "Visual Studio 17 2022" -A ${{steps.virtuals.outputs.msarch}} -T ${{steps.virtuals.outputs.msts}} -DCMAKE_SYSTEM_VERSION=${{steps.virtuals.outputs.winsdk}} .
run: cd libzstd\build\cmake && cmake -G "Visual Studio 17 2022" -A ${{steps.virtuals.outputs.msarch}} -T ${{steps.virtuals.outputs.msts}} -DCMAKE_SYSTEM_VERSION=${{steps.virtuals.outputs.winsdk}} -DZSTD_BUILD_PROGRAMS=OFF .
- name: Build libzstd
run: cd libzstd\build\cmake && cmake --build . --config RelWithDebInfo
- name: Install libzstd
run: |
cd libzstd\build\cmake
cmake --install . --config RelWithDebInfo --prefix ..\..\..\install
xcopy lib\RelWithDebInfo\libzstd.pdb ..\..\..\install\bin\*
xcopy lib\RelWithDebInfo\libzstd_a.pdb ..\..\..\install\lib\*
cd ..\..
copy COPYING ..\install
copy LICENSE ..\install
Expand Down

0 comments on commit 9cfd9a2

Please sign in to comment.