diff --git a/appveyor.yml b/appveyor.yml index e2c9afb661..fece9bb0ad 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,3 @@ -skip_tags: true clone_depth: 1 pull_requests: do_not_increment_build_number: true @@ -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 @@ -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 @@ -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