toxcore/appveyor.yml
Robin Linden 6baabee695
chore: Add a shared library on Windows appveyor job
This also changes the Appveyor build to only build once, with tests,
instead of once without tests and once with tests.
2022-04-03 23:04:19 +02:00

33 lines
664 B
YAML

---
image: Visual Studio 2019
cache:
- '%USERPROFILE%\.conan -> conanfile.py'
environment:
matrix:
- job_name: static
- job_name: shared
install:
- set PATH=C:\Python310-x64\Scripts;%PATH%
- py -3 -m pip install conan
- git submodule update --init --recursive
for:
- matrix:
only:
- job_name: static
before_build:
- conan install -if _build -o with_tests=True .
- matrix:
only:
- job_name: shared
before_build:
- conan install -if _build -o with_tests=True -o shared=True .
build_script:
- set CONAN_CPU_COUNT=50
- set CTEST_OUTPUT_ON_FAILURE=1
- conan build -bf _build -if _build .