Skip to content

Commit

Permalink
feat(appveyor): build variant "rime-with-plugins" for tagged commits …
Browse files Browse the repository at this point in the history
…[skip travis]
  • Loading branch information
lotem committed Jun 22, 2019
1 parent cf11c27 commit eef8c30
Showing 1 changed file with 34 additions and 7 deletions.
41 changes: 34 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
skip_tags: true
clone_depth: 1
pull_requests:
do_not_increment_build_number: true
Expand All @@ -7,8 +6,23 @@ version: '{branch} build {build}'
image: Visual Studio 2017

environment:
BOOST_ROOT: C:\Libraries\boost_1_69_0
CL: /Zc:threadSafeInit-
global:
BOOST_ROOT: C:\Libraries\boost_1_69_0
CL: /Zc:threadSafeInit-
matrix:
- RIME_VARIANT: rime
RIME_PLUGINS: ""
- RIME_VARIANT: rime-with-plugins
RIME_PLUGINS: $(RIME_BUNDLED_PLUGINS)

matrix:
fast_finish: true

for:
- matrix:
only:
- RIME_VARIANT: rime-with-plugins
skip_non_tags: true

cache:
- thirdparty.cached -> appveyor.install.bat
Expand All @@ -30,8 +44,9 @@ build_script:
- .\build.bat test

after_build:
- 7z a rime.zip dist thirdparty\bin thirdparty\share
- dir dist /s
- set artifacts=%RIME_VARIANT%-%APPVEYOR_REPO_TAG_NAME%-win32.zip
- echo %artifacts%
- 7z a %artifacts% dist thirdparty\bin thirdparty\share

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

artifacts:
- path: rime.zip
name: Distributables, including binaries and OpenCC data
- path: $(RIME_VARIANT)-$(APPVEYOR_REPO_TAG_NAME)-win32.zip
name: Distributables

deploy:
tag: $(APPVEYOR_REPO_TAG_NAME)
release: librime $(APPVEYOR_REPO_TAG_NAME)
description: "chore(release): librime $(APPVEYOR_REPO_TAG_NAME) :tada:"
provider: GitHub
auth_token:
secure: 1vXg/cmgjoy56Z8QiKHRTZAE2MfBtuvRqffkiSqnQAb8EncLbKhTizsAUTN85gix
artifact: Distributables
draft: true
on:
APPVEYOR_REPO_TAG: true

0 comments on commit eef8c30

Please sign in to comment.