mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix(zstd)
needed a loader_path to find libzstd
This commit is contained in:
parent
41705015d6
commit
174bdc9b22
1 changed files with 19 additions and 10 deletions
|
@ -24,16 +24,21 @@ build:
|
||||||
cmake.org: ^3
|
cmake.org: ^3
|
||||||
ninja-build.org: ^1
|
ninja-build.org: ^1
|
||||||
working-directory: build/out
|
working-directory: build/out
|
||||||
script: |
|
script:
|
||||||
cmake ../cmake $ARGS
|
- cmake ../cmake $ARGS
|
||||||
cmake --build .
|
- cmake --build .
|
||||||
cmake --install .
|
- cmake --install .
|
||||||
|
- run: |
|
||||||
|
install_name_tool -add_rpath @loader_path/../lib pzstd
|
||||||
|
install_name_tool -add_rpath @loader_path/../lib zstd
|
||||||
|
if: darwin
|
||||||
|
working-directory: ${{prefix}}/bin
|
||||||
env:
|
env:
|
||||||
ARGS:
|
ARGS:
|
||||||
- -GNinja
|
- -GNinja
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
|
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
|
||||||
- -DZSTD_PROGRAMS_LINK_SHARED=ON # link `zstd` to `libzstd`
|
- -DZSTD_PROGRAMS_LINK_SHARED=ON # link `zstd` to `libzstd`
|
||||||
- -DZSTD_BUILD_CONTRIB=ON
|
- -DZSTD_BUILD_CONTRIB=ON
|
||||||
- -DZSTD_LEGACY_SUPPORT=ON
|
- -DZSTD_LEGACY_SUPPORT=ON
|
||||||
- -DZSTD_ZLIB_SUPPORT=ON
|
- -DZSTD_ZLIB_SUPPORT=ON
|
||||||
|
@ -44,8 +49,12 @@ build:
|
||||||
# Otherwise we get errors from clang
|
# Otherwise we get errors from clang
|
||||||
- -DCMAKE_CXX_FLAGS="-std=c++11"
|
- -DCMAKE_CXX_FLAGS="-std=c++11"
|
||||||
|
|
||||||
test: |
|
test:
|
||||||
export fixture="asdf123%!*"
|
env:
|
||||||
for x in zstd pzstd xz lz4 gzip; do
|
STRING: asdf123%!*
|
||||||
test $(echo "$fixture" | $x | zstd -d) = "$fixture"
|
script:
|
||||||
done
|
- test $(echo "$STRING" | zstd | zstd -d) = "$STRING"
|
||||||
|
- test $(echo "$STRING" | pzstd | zstd -d) = "$STRING"
|
||||||
|
- test $(echo "$STRING" | xz | zstd -d) = "$STRING"
|
||||||
|
- test $(echo "$STRING" | lz4 | zstd -d) = "$STRING"
|
||||||
|
- test $(echo "$STRING" | gzip | zstd -d) = "$STRING"
|
||||||
|
|
Loading…
Reference in a new issue