1
- skip_tags : true
2
1
clone_depth : 1
3
2
pull_requests :
4
3
do_not_increment_build_number : true
@@ -7,8 +6,23 @@ version: '{branch} build {build}'
7
6
image : Visual Studio 2017
8
7
9
8
environment :
10
- BOOST_ROOT : C:\Libraries\boost_1_69_0
11
- CL : /Zc:threadSafeInit-
9
+ global :
10
+ BOOST_ROOT : C:\Libraries\boost_1_69_0
11
+ CL : /Zc:threadSafeInit-
12
+ matrix :
13
+ - RIME_VARIANT : rime
14
+ RIME_PLUGINS : " "
15
+ - RIME_VARIANT : rime-with-plugins
16
+ RIME_PLUGINS : $(RIME_BUNDLED_PLUGINS)
17
+
18
+ matrix :
19
+ fast_finish : true
20
+
21
+ for :
22
+ - matrix :
23
+ only :
24
+ - RIME_VARIANT : rime-with-plugins
25
+ skip_non_tags : true
12
26
13
27
cache :
14
28
- thirdparty.cached -> appveyor.install.bat
@@ -30,8 +44,9 @@ build_script:
30
44
- .\build.bat test
31
45
32
46
after_build :
33
- - 7z a rime.zip dist thirdparty\bin thirdparty\share
34
- - dir dist /s
47
+ - set artifacts=%RIME_VARIANT%-%APPVEYOR_REPO_TAG_NAME%-win32.zip
48
+ - echo %artifacts%
49
+ - 7z a %artifacts% dist thirdparty\bin thirdparty\share
35
50
36
51
before_test :
37
52
- copy /y dist\lib\rime.dll build\test
@@ -41,5 +56,17 @@ test_script:
41
56
- .\Release\rime_test.exe
42
57
43
58
artifacts :
44
- - path : rime.zip
45
- name : Distributables, including binaries and OpenCC data
59
+ - path : $(RIME_VARIANT)-$(APPVEYOR_REPO_TAG_NAME)-win32.zip
60
+ name : Distributables
61
+
62
+ deploy :
63
+ tag : $(APPVEYOR_REPO_TAG_NAME)
64
+ release : librime $(APPVEYOR_REPO_TAG_NAME)
65
+ description : " chore(release): librime $(APPVEYOR_REPO_TAG_NAME) :tada:"
66
+ provider : GitHub
67
+ auth_token :
68
+ secure : 1vXg/cmgjoy56Z8QiKHRTZAE2MfBtuvRqffkiSqnQAb8EncLbKhTizsAUTN85gix
69
+ artifact : Distributables
70
+ draft : true
71
+ on :
72
+ APPVEYOR_REPO_TAG : true
0 commit comments