mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
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.
This commit is contained in:
parent
657d185de5
commit
6baabee695
24
appveyor.yml
24
appveyor.yml
|
@ -4,19 +4,29 @@ image: Visual Studio 2019
|
||||||
cache:
|
cache:
|
||||||
- '%USERPROFILE%\.conan -> conanfile.py'
|
- '%USERPROFILE%\.conan -> conanfile.py'
|
||||||
|
|
||||||
|
environment:
|
||||||
|
matrix:
|
||||||
|
- job_name: static
|
||||||
|
- job_name: shared
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- set PATH=C:\Python310-x64\Scripts;%PATH%
|
- set PATH=C:\Python310-x64\Scripts;%PATH%
|
||||||
- py -3 -m pip install conan
|
- py -3 -m pip install conan
|
||||||
|
|
||||||
before_build:
|
|
||||||
- git submodule update --init --recursive
|
- git submodule update --init --recursive
|
||||||
- conan install -if _build .
|
|
||||||
|
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:
|
build_script:
|
||||||
- conan build -bf _build -if _build .
|
|
||||||
|
|
||||||
test_script:
|
|
||||||
- set CONAN_CPU_COUNT=50
|
- set CONAN_CPU_COUNT=50
|
||||||
- set CTEST_OUTPUT_ON_FAILURE=1
|
- set CTEST_OUTPUT_ON_FAILURE=1
|
||||||
- conan install -if _build -o with_tests=True .
|
|
||||||
- conan build -bf _build -if _build .
|
- conan build -bf _build -if _build .
|
||||||
|
|
Loading…
Reference in New Issue
Block a user