forked from OGRECave/ogre
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
40 lines (40 loc) · 1.62 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
platform: x64
configuration: Release
environment:
CS_APIKEY:
secure: XiSyqXBlbnIqawfinZqXimatuEdpYsI38+HK2TgvuUGHQEoeFHA62700/EhFJ4M1
image:
- Visual Studio 2019
install:
- cmd: SET PATH=C:\Python310-x64;C:\Python310-x64\Scripts;%PATH%
- cmd: pip install swig
- cmd: curl -sSf -o rustup-init.exe https://win.rustup.rs/
- cmd: rustup-init.exe -y
- cmd: curl -LO https://sdk.lunarg.com/sdk/download/1.3.224.1/windows/VulkanSDK-1.3.224.1-Installer.exe
- cmd: VulkanSDK-1.3.224.1-Installer.exe --accept-licenses --default-answer --confirm-command install
- cmd: cd %APPVEYOR_BUILD_FOLDER%
- cmd: git submodule update --init --recursive
build_script:
- set PATH=C:\Qt\6.2\msvc2019_64\bin;C:\Users\appveyor\.cargo\bin;%PATH%
- set VULKAN_SDK=C:\VulkanSDK\1.3.224.1
- cmake -P ci-build.cmake
- cmake --build build --config RelWithDebInfo --target INSTALL
test_script:
- set PATH=%PATH%;build\gtest\lib
- build\bin\RelWithDebInfo\Test_Ogre.exe --gtest_filter=-MeshWithoutIndexDataTests*
cache:
- ogredeps -> CMake/Dependencies.cmake
branches:
only:
- master
- stable
- /v\d+\.\d+\.\d+/
after_build:
- IF NOT "%APPVEYOR_REPO_TAG%" == "true" set APPVEYOR_REPO_TAG_NAME=master
- 7z a ogre-sdk-%APPVEYOR_REPO_TAG_NAME%-msvc142-x64.zip ./build/sdk/*
- SET PATH=C:\Python310-x64;C:\Python310-x64\Scripts;%PATH%
- pip install --upgrade cloudsmith-cli
- IF "%APPVEYOR_PULL_REQUEST_NUMBER%" == "" cloudsmith push raw ogrecave/ogre ogre-sdk-%APPVEYOR_REPO_TAG_NAME%-msvc142-x64.zip --republish --version %APPVEYOR_REPO_TAG_NAME% -k %CS_APIKEY%
artifacts:
- path: ogre-sdk-master-msvc142-x64.zip
name: ogre-sdk-master-msvc142-x64