mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
chore: Migrate Windows CI from Appveyor to Azure DevOps
This commit is contained in:
parent
8ed47f3ef2
commit
c0ec33b168
32
appveyor.yml
32
appveyor.yml
|
@ -1,32 +0,0 @@
|
||||||
---
|
|
||||||
image: Visual Studio 2019
|
|
||||||
|
|
||||||
cache:
|
|
||||||
- '%USERPROFILE%\.conan -> conanfile.py'
|
|
||||||
|
|
||||||
environment:
|
|
||||||
matrix:
|
|
||||||
- job_name: static
|
|
||||||
- job_name: shared
|
|
||||||
|
|
||||||
install:
|
|
||||||
- set PATH=C:\Python311-x64\Scripts;%PATH%
|
|
||||||
- py -3 -m pip install conan==1.59.0
|
|
||||||
- git submodule update --init --recursive
|
|
||||||
|
|
||||||
for:
|
|
||||||
- matrix:
|
|
||||||
only:
|
|
||||||
- job_name: static
|
|
||||||
before_build:
|
|
||||||
- conan install -if _build -o with_tests=False .
|
|
||||||
- matrix:
|
|
||||||
only:
|
|
||||||
- job_name: shared
|
|
||||||
before_build:
|
|
||||||
- conan install -if _build -o with_tests=False -o shared=True .
|
|
||||||
|
|
||||||
build_script:
|
|
||||||
- set CONAN_CPU_COUNT=50
|
|
||||||
- set CTEST_OUTPUT_ON_FAILURE=1
|
|
||||||
- conan build -bf _build -if _build .
|
|
15
azure-pipelines.yml
Normal file
15
azure-pipelines.yml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
pool:
|
||||||
|
vmImage: "windows-2019"
|
||||||
|
jobs:
|
||||||
|
- job: "windows_msvc_conan"
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
static:
|
||||||
|
conan.shared: "False"
|
||||||
|
shared:
|
||||||
|
conan.shared: "True"
|
||||||
|
steps:
|
||||||
|
- bash: python -m pip install conan
|
||||||
|
- bash: git submodule update --init --recursive
|
||||||
|
- bash: conan install -if _build -o with_tests=True -o shared=$(conan.shared) .
|
||||||
|
- bash: CONAN_CPU_COUNT=50 CTEST_OUTPUT_ON_FAILURE=1 conan build -bf _build -if _build .
|
Loading…
Reference in New Issue
Block a user