forked from KxSystems/embedPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
35 lines (25 loc) · 1.11 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
version: 1.0.{build}
image:
- Visual Studio 2017
artifacts:
- path: embedPy_windows-$(appveyor_repo_tag_name).zip
skip_non_tags: false
platform: x64
build_script:
- cmd: >-
curl -fsSL -o k.h https://github.com/KxSystems/kdb/raw/master/c/c/k.h
curl -fsSL -o q.lib https://github.com/KxSystems/kdb/raw/master/w64/q.lib
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
mkdir w64
cl /LD /DKXVER=3 /Fep.dll /O2 py.c q.lib
move p.dll w64
after_build:
- cmd: >-
if "%APPVEYOR_REPO_TAG%"=="true" ( 7z a embedPy_windows-%APPVEYOR_REPO_TAG_NAME%.zip p.q p.k test.q tests w64/p.dll LICENSE README.md && appveyor PushArtifact embedPy_windows-%APPVEYOR_REPO_TAG_NAME%.zip )
if "%APPVEYOR_REPO_TAG%"=="false" ( 7z a embedPy_windows-%APPVEYOR_REPO_BRANCH%-%APPVEYOR_BUILD_VERSION%.zip p.q p.k test.q tests w64/p.dll LICENSE README.md && appveyor PushArtifact embedPy_windows-%APPVEYOR_REPO_BRANCH%-%APPVEYOR_BUILD_VERSION%.zip )
deploy:
release: $(appveyor_repo_tag_name)
provider: GitHub
auth_token: $(GITHUB_APIKEY)
on:
appveyor_repo_tag: true