Updated zlib on CI.

This commit is contained in:
Takatoshi Kondo 2022-11-02 09:49:19 +09:00
parent b051192ed6
commit 535bf33681
3 changed files with 13 additions and 13 deletions

View File

@ -27,9 +27,9 @@ while getopts "b:t:p:" c; do
done done
mkdir $prefix || exit 1 mkdir $prefix || exit 1
wget https://zlib.net/zlib-1.2.12.tar.gz || exit 1 wget https://zlib.net/zlib-1.2.13.tar.gz || exit 1
tar -xf zlib-1.2.12.tar.gz || exit 1 tar -xf zlib-1.2.13.tar.gz || exit 1
cd zlib-1.2.12 cd zlib-1.2.13
build() build()
{ {

View File

@ -25,7 +25,7 @@ jobs:
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: ~/boost-prefix/ path: ~/boost-prefix/
key: ${{ runner.os }}-boost-1-76-0-2021-08-09 key: ${{ runner.os }}-boost-1-76-0-2022-08-09
- name: Build boost - name: Build boost
if: steps.cache-boost.outputs.cache-hit != 'true' if: steps.cache-boost.outputs.cache-hit != 'true'
@ -36,7 +36,7 @@ jobs:
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: ~/zlib-prefix/ path: ~/zlib-prefix/
key: ${{ runner.os }}-zlib-1-2-12-2021-08-09 key: ${{ runner.os }}-zlib-1-2-13-2022-11-02
- name: Build zlib - name: Build zlib
if: steps.cache-zlib.outputs.cache-hit != 'true' if: steps.cache-zlib.outputs.cache-hit != 'true'
@ -111,7 +111,7 @@ jobs:
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: ~/zlib-prefix/ path: ~/zlib-prefix/
key: ${{ runner.os }}-zlib-1-2-12-2021-08-09 key: ${{ runner.os }}-zlib-1-2-13-2022-11-02
- name: Build zlib - name: Build zlib
if: steps.cache-zlib.outputs.cache-hit != 'true' if: steps.cache-zlib.outputs.cache-hit != 'true'

View File

@ -23,10 +23,10 @@ environment:
boost_subdir: lib32-msvc-14.0 boost_subdir: lib32-msvc-14.0
build_script: build_script:
- ps: | - ps: |
appveyor DownloadFile http://zlib.net/zlib-1.2.12.tar.gz -FileName zlib-1.2.12.tar.gz appveyor DownloadFile http://zlib.net/zlib-1.2.13.tar.gz -FileName zlib-1.2.13.tar.gz
7z x zlib-1.2.12.tar.gz 2> $null 7z x zlib-1.2.13.tar.gz 2> $null
7z x zlib-1.2.12.tar 2> $null 7z x zlib-1.2.13.tar 2> $null
cd zlib-1.2.12 cd zlib-1.2.13
md build md build
md prefix md prefix
@ -34,7 +34,7 @@ build_script:
cmake ` cmake `
-G $env:msvc ` -G $env:msvc `
-D CMAKE_INSTALL_PREFIX="$env:APPVEYOR_BUILD_FOLDER\zlib-1.2.12\prefix" ` -D CMAKE_INSTALL_PREFIX="$env:APPVEYOR_BUILD_FOLDER\zlib-1.2.13\prefix" `
.. ..
if ($LastExitCode -ne 0) { exit $LastExitCode } if ($LastExitCode -ne 0) { exit $LastExitCode }
@ -52,7 +52,7 @@ build_script:
-D MSGPACK_BUILD_EXAMPLES=ON ` -D MSGPACK_BUILD_EXAMPLES=ON `
-D MSGPACK_BUILD_TESTS=ON ` -D MSGPACK_BUILD_TESTS=ON `
-D CMAKE_EXE_LINKER_FLAGS=/LIBPATH:"$env:boost_prefix\$env:boost_subdir" ` -D CMAKE_EXE_LINKER_FLAGS=/LIBPATH:"$env:boost_prefix\$env:boost_subdir" `
-D CMAKE_PREFIX_PATH="$env:boost_prefix;$env:APPVEYOR_BUILD_FOLDER\zlib-1.2.12\prefix" ` -D CMAKE_PREFIX_PATH="$env:boost_prefix;$env:APPVEYOR_BUILD_FOLDER\zlib-1.2.13\prefix" `
-D CMAKE_INSTALL_PREFIX="$env:APPVEYOR_BUILD_FOLDER\prefix" ` -D CMAKE_INSTALL_PREFIX="$env:APPVEYOR_BUILD_FOLDER\prefix" `
-D CMAKE_CXX_FLAGS="/D_VARIADIC_MAX=10 /EHsc /DBOOST_ALL_DYN_LINK" ` -D CMAKE_CXX_FLAGS="/D_VARIADIC_MAX=10 /EHsc /DBOOST_ALL_DYN_LINK" `
.. ..
@ -62,5 +62,5 @@ build_script:
if ($LastExitCode -ne 0) { exit $LastExitCode } if ($LastExitCode -ne 0) { exit $LastExitCode }
test_script: test_script:
- set PATH=%PATH%;%APPVEYOR_BUILD_FOLDER%\zlib-1.2.12\build\Release;%APPVEYOR_BUILD_FOLDER%\build\release;%boost_prefix%\%boost_subdir% - set PATH=%PATH%;%APPVEYOR_BUILD_FOLDER%\zlib-1.2.13\build\Release;%APPVEYOR_BUILD_FOLDER%\build\release;%boost_prefix%\%boost_subdir%
- ctest -VV -C Release - ctest -VV -C Release