Skip to content

Commit

Permalink
chore: Add a shared library on Windows appveyor job
Browse files Browse the repository at this point in the history
This also changes the Appveyor build to only build once, with tests,
instead of once without tests and once with tests.
  • Loading branch information
robinlinden committed Apr 3, 2022
1 parent b19e7bf commit fc00bca
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,29 @@ 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

before_build:
- git submodule update --init --recursive
- conan install -if _build .

build_script:
- conan build -bf _build -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 .

test_script:
build_script:
- set CONAN_CPU_COUNT=50
- set CTEST_OUTPUT_ON_FAILURE=1
- conan install -if _build -o with_tests=True .
- conan build -bf _build -if _build .

0 comments on commit fc00bca

Please sign in to comment.