Skip to content

Commit eef8c30

Browse files
committed
feat(appveyor): build variant "rime-with-plugins" for tagged commits [skip travis]
1 parent cf11c27 commit eef8c30

File tree

1 file changed

+34
-7
lines changed

1 file changed

+34
-7
lines changed

appveyor.yml

+34-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
skip_tags: true
21
clone_depth: 1
32
pull_requests:
43
do_not_increment_build_number: true
@@ -7,8 +6,23 @@ version: '{branch} build {build}'
76
image: Visual Studio 2017
87

98
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
1226

1327
cache:
1428
- thirdparty.cached -> appveyor.install.bat
@@ -30,8 +44,9 @@ build_script:
3044
- .\build.bat test
3145

3246
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
3550

3651
before_test:
3752
- copy /y dist\lib\rime.dll build\test
@@ -41,5 +56,17 @@ test_script:
4156
- .\Release\rime_test.exe
4257

4358
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

Comments
 (0)