forked from VirusTotal/yara
-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
109 lines (89 loc) · 2.94 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
# AppVeyor CI for Windows
version: '{branch}-{build}'
pull_requests:
do_not_increment_build_number: true
environment:
matrix:
- TARGET: vs2015
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
VisualStudioVersion: 14.0
platform: x86
configuration: Release
artifact_postfix: win32
- TARGET: vs2015
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
VisualStudioVersion: 14.0
platform: x86
configuration: Debug
- TARGET: vs2015
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
VisualStudioVersion: 14.0
platform: x64
configuration: Release
artifact_postfix: win64
- TARGET: vs2015
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
VisualStudioVersion: 14.0
platform: x64
configuration: Debug
- TARGET: cygwin
for:
-
matrix:
only:
- TARGET: cygwin
# Disable the installation of flex and bison packages. For some reason this
# now (2021-04-19) upgrades the perl_base package to version 5.32.1-1 which
# later fails with error:
# Can't locate threads.pm in @INC (you may need to install the threads module)
#
# before_build:
# - cmd: C:\cygwin64\setup-x86_64.exe --quiet-mode --no-desktop --no-shortcuts --no-startmenu --no-admin --packages flex,bison
build_script:
- cmd: C:\cygwin64\bin\bash -e -l -c "cd c:/projects/yara && ./build.sh"
test_script:
- cmd: C:\cygwin64\bin\bash -e -l -c "cd c:/projects/yara && make check"
-
matrix:
only:
- TARGET: vs2015
- configuration: Release
before_build:
- ps: nuget restore windows/vs2015/yara.sln
build:
project: windows/vs2015/yara.sln
verbosity: minimal
after_build:
- cmd: 7z a yara-%APPVEYOR_BUILD_VERSION%-%ARTIFACT_POSTFIX%.zip %APPVEYOR_BUILD_FOLDER%\windows\%TARGET%\%CONFIGURATION%\yara*.exe
artifacts:
- path: yara-$(APPVEYOR_BUILD_VERSION)-$(ARTIFACT_POSTFIX).zip
name: yara-$(APPVEYOR_BUILD_VERSION)-$(ARTIFACT_POSTFIX)
type: zip
deploy:
tag: $(APPVEYOR_REPO_TAG_NAME)
release: YARA $(APPVEYOR_REPO_TAG_NAME)
provider: GitHub
auth_token:
secure: d3qqX7bmrBiKJI38yFPc5vHrGGfS3LxLC7FaG6ewI2ghPPE22Pk6QtyrEFFb73PL
artifact: yara-$(APPVEYOR_BUILD_VERSION)-$(ARTIFACT_POSTFIX)
draft: true
on:
APPVEYOR_REPO_TAG: true # deploy on tag push only
test_script:
- cmd: c:/projects/yara/windows/vs2015/%CONFIGURATION%/test-alignment.exe
-
matrix:
only:
- TARGET: vs2015
- configuration: Debug
before_build:
- ps: nuget restore windows/vs2015/yara.sln
build:
project: windows/vs2015/yara.sln
verbosity: minimal
test_script:
- cmd: c:/projects/yara/windows/vs2015/%CONFIGURATION%/test-alignment.exe
# Uncomment the lines below for enabling Remote Desktop in the Appveyor. This
# allows connecting to the remote machine and debug issues.
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))