diff options
author | Martin Matuska <martin@matuska.org> | 2019-04-01 14:00:42 +0200 |
---|---|---|
committer | Martin Matuska <martin@matuska.org> | 2019-04-01 18:33:52 +0200 |
commit | c1824937fddd931a82814cf51fb3308fa65bffaf (patch) | |
tree | aee4bb2fdbd5fe69378a3002591f9b1077061f66 /.cirrus.yml | |
parent | 9112ff6c9242204a72e8ee756fd6346a4005111f (diff) | |
download | libarchive-c1824937fddd931a82814cf51fb3308fa65bffaf.tar.gz |
Cirrus CI: add Cygwin build, MinGW build use zlib, suppress download progress
Diffstat (limited to '.cirrus.yml')
-rw-r--r-- | .cirrus.yml | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/.cirrus.yml b/.cirrus.yml index 3e30aeec..d3627afc 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -30,16 +30,42 @@ main_task: - ./build/ci/build.sh -a test - ./build/ci/cirrus_ci.sh test -Windows_MinGW_task: +Windows_Cygwin_task: windows_container: image: cirrusci/windowsservercore:2019 os_version: 2019 prepare_script: - - choco install -y mingw - - choco install -y cmake --installargs 'ADD_CMAKE_TO_PATH=User' + - choco install -y --no-progress cygwin + - C:\tools\cygwin\cygwinsetup.exe -q -P make,autoconf,automake,cmake,gcc-core,binutils,libtool,pkg-config,bison,sharutils,zlib-devel,libbz2-devel,liblzma-devel,liblz4-devel,libiconv-devel,libxml2-devel,libzstd-devel,libssl-devel configure_script: + - set BS=cmake + - C:\tools\cygwin\bin\bash.exe --login -c "cd '%cd%'; ./build/ci/build.sh -a configure" + build_script: + - set BS=cmake + - C:\tools\cygwin\bin\bash.exe --login -c "cd '%cd%'; ./build/ci/build.sh -a build" + +Windows_MinGW_task: + windows_container: + image: cirrusci/windowsservercore:2019 + os_version: 2019 + prepare_script: + - choco install -y --no-progress mingw + - choco install -y --no-progress --installargs 'ADD_CMAKE_TO_PATH=User' cmake + - choco install -y --no-progress wget - refreshenv - mkdir build_ci\mingw + zlib_script: + - refreshenv + - mkdir build_ci\libs + - cd build_ci\libs + - wget "https://www.zlib.net/zlib-1.2.11.tar.gz" + - tar -x -z -f zlib-1.2.11.tar.gz + - cd zlib-1.2.11 + - cmake -G "MinGW Makefiles" -D CMAKE_BUILD_TYPE="Release" . + - mingw32-make + - mingw32-make install + configure_script: + - refreshenv - cd build_ci\mingw - cmake -G "MinGW Makefiles" -D CMAKE_BUILD_TYPE="Release" ..\.. build_script: |