forked from devsim/devsim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
202 lines (161 loc) · 6.31 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 1.{build}-win64
# you can use {branch} name in version format too
# version: 1.0.{build}-{branch}
# branches to build
# prevent duplicate builds on tagged versions on main
# development to be done on other branches
branches:
except:
- main
#branches:
# whitelist
#only:
# - main
# Do not build on tags (GitHub only)
#skip_tags: true
skip_non_tags: true
# Skipping commits with particular message or from user
#skip_commits:
# message: /Created.*\.(png|jpg|jpeg|bmp|gif)/ # Regex for matching commit message
# author: John # Commit author's username, name, email or regexp maching one of these.
#---------------------------------#
# environment configuration #
#---------------------------------#
# Operating system (build VM template)
image: Visual Studio 2022
# scripts that are called at very beginning, before repo cloning
init:
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- git config --global core.autocrlf input
# clone directory
clone_folder: c:\projects\devsim
# fetch repository as zip archive
#shallow_clone: true # default is "false"
# set clone depth
clone_depth: 3 # clone entire repository history if not defined
# environment variables
#environment:
# my_var1: value1
# my_var2: value2
# # this is how to set encrypted variable. Go to "Encrypt data" page in account menu to encrypt data.
# my_secure_var1:
# secure: FW3tJ3fMncxvs58/ifSP7w==
# this is how to allow failing jobs in the matrix
#fast_finish: true # set this flag to immediately finish build once one of the jobs fails.
# - platform: x86
# configuration: Release
matrix:
allow_failures:
- platform: x64
configuration: Release
- platform: msys
configuration: Release
# build cache to preserve files/folders between builds
#cache:
# - packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
# - projectA\libs
# - node_modules # local npm modules
# - %APPDATA%\npm-cache # npm cache
# scripts that run after cloning repository
install:
- SET README_BASE_URL=https://github.com/devsim/devsim/blob/%TRAVIS_TAG%
- cd %APPVEYOR_BUILD_FOLDER%
- git submodule update --init --depth 1 external/eigen
- git submodule update --init --depth 1 external/symdiff
- git submodule update --init --depth 1 external/boostorg/config
- git submodule update --init --depth 1 external/boostorg/multiprecision
- git submodule update --init --depth 1 external/boostorg/math
- git submodule update --init --depth 1 external/umfpack_lgpl
- IF "%PLATFORM%"=="msys" SET CONDA_BIN=c:\Miniconda37-x64\condabin\conda.bat
- IF "%PLATFORM%"=="x64" SET CONDA_BIN=c:\Miniconda37-x64\condabin\conda.bat
- IF "%PLATFORM%"=="x86" SET CONDA_BIN=c:\Miniconda37\condabin\conda.bat
# enable patching of AssemblyInfo.* files
#assembly_info:
# patch: true
# file: AssemblyInfo.*
# assembly_version: "2.2.{build}"
# assembly_file_version: "{version}"
# assembly_informational_version: "{version}"
# Automatically register private account and/or project AppVeyor NuGet feeds.
#nuget:
# account_feed: true
# project_feed: true
# disable_publish_on_pr: true # disable publishing of .nupkg artifacts to
# account/project feeds for pull request builds
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
# - x86
platform:
- x64
# - msys
# to add several platforms to build matrix:
#platform:
# - x86
# - Any CPU
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
# to add several configurations to build matrix:
#configuration:
# - Debug
# - Release
#build:
# parallel: true # enable MSBuild parallel builds
# project: MyTestAzureCS.sln # path to Visual Studio solution or project
# publish_wap: true # package Web Application Projects (WAP) for Web Deploy
# publish_wap_xcopy: true # package Web Application Projects (WAP) for XCopy deployment
# publish_azure: true # package Azure Cloud Service projects and push to artifacts
# publish_nuget: true # package projects with .nuspec files and push to artifacts
# publish_nuget_symbols: true # generate and publish NuGet symbol packages
# include_nuget_references: true # add -IncludeReferencedProjects option while packaging NuGet artifacts
#
# # MSBuild verbosity level
# verbosity: quiet|minimal|normal|detailed
# scripts to run before build
#before_build:
# scripts to run *after* solution is built and *before* automatic packaging occurs (web apps, NuGet packages, Azure Cloud Services)
#before_package:
# scripts to run after build
#after_build:
#before_deploy:
#- c:\cygwin\bin\bash.exe package_appveyor.sh devsim_win64_%APPVEYOR_REPO_TAG_NAME%
# to run your custom scripts instead of automatic MSBuild
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- scripts\build_appveyor.bat %PLATFORM% %CONDA_BIN% %APPVEYOR_REPO_TAG_NAME%
# to run your custom scripts instead of automatic tests
# test_script:
# - echo This is my custom test script
# to disable automatic tests
test: off
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: dist\*.zip
- path: dist\*.whl
#---------------------------------#
# deployment configuration #
#---------------------------------#
deploy:
# Deploy to GitHub Releases
- provider: GitHub
auth_token:
secure: KPabiYsJCsN7O08NNi7GHM8+spd0eNQi670PYzZDS2rRg0Og5XJMw4goEWpZIALm
#artifact: dist\*.zip
draft: true
prerelease: false
force_update: true
on:
appveyor_repo_tag: true # deploy on tag push only
#branch: main # release from main branch only