forked from Infactum/addin-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
71 lines (61 loc) · 1.83 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
# image:
# - Visual Studio 2022
# - Ubuntu
configuration: Release
# platform:
# - Win32
# - x64
environment:
APPVEYOR_YML_DISABLE_PS_LINUX: true
matrix:
- job_name: Build Linux x64
job_group: Build
appveyor_build_worker_image: Ubuntu
- job_name: Build Windows x86
job_group: Build
appveyor_build_worker_image: Visual Studio 2022
- job_name: Build Windows x64
job_group: Build
appveyor_build_worker_image: Visual Studio 2022
- job_name: Deploy
appveyor_build_worker_image: Visual Studio 2022
matrix:
fast_finish: true
# exclude:
# - image: Ubuntu
# TARGET_PLATFORM: Win32
install:
- sh: sudo apt install uuid-dev
build:
verbosity: minimal
for:
- matrix:
only:
- job_name: Build Linux x64
build_script:
- mkdir Builds/Release -p && cd ./Builds/Release
- cmake -DCMAKE_BUILD_TYPE=Release ../../; cmake --build .
after_build:
- sh: appveyor PushArtifact YaxUnitAddIn.so -DeploymentName binaries -FileName YaxUnitAddIn.so
- matrix:
only:
- job_name: Build Windows x86
before_build:
- ps: cmake -B Builds -G "Visual Studio 17 2022" -A Win32
after_build:
- ps: Push-AppveyorArtifact Builds/Release/YaxUnitAddIn.dll -DeploymentName binaries -FileName YaxUnitAddIn-x86.dll
- matrix:
only:
- job_name: Build Windows x64
before_build:
- ps: cmake -B Builds -G "Visual Studio 17 2022" -A x64
after_build:
- ps: Push-AppveyorArtifact Builds/Release/YaxUnitAddIn.dll -DeploymentName binaries -FileName YaxUnitAddIn-x64.dll
- matrix:
only:
- job_name: Deploy
build_script:
- ps: |
foreach ($artifactName in $artifacts.keys) {
Invoke-WebRequest -Uri $artifacts[$artifactName].url -OutFile $artifacts[$artifactName].path
}