Skip to content

Commit

Permalink
update appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
xiamx committed Feb 10, 2018
1 parent 93ccfae commit 50d21a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set (fasttext_VERSION_MINOR 1)
include_directories(fasttext)

if(WIN32)
set(CMAKE_CXX_FLAGS " -std=c++11 -funroll-loops -O3 -march=native")
set(CMAKE_CXX_FLAGS "/O2")
else()
set(CMAKE_CXX_FLAGS " -pthread -std=c++11 -funroll-loops -O3 -march=native")
endif()
Expand Down
21 changes: 10 additions & 11 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,27 @@ before_build:
cmake --version
cmake .. -G %generator%
dir
build:
project: c:\projects\fasttext\build\fasttext.sln
parallel: true

after_build:
7z a %APPVEYOR_BUILD_FOLDER%\build\fasttext-win64-latest-%CONFIGURATION%.zip %APPVEYOR_BUILD_FOLDER%\build\%CONFIGURATION%

artifacts:
- path: build/%CONFIGURATION%
- path: build\fasttext-win64-latest-$(CONFIGURATION).zip
name: fastText-win64-%CONFIGURATION%
type: zip

deploy:
release: fastText-%APPVEYOR_REPO_TAG_NAME%-build$(appveyor_build_version)
description: 'The latest binary build of fastText for 64 bit Windows, using VS2017'
release: fastText-latest-build$(appveyor_build_version)
description: 'The latest binary build $(appveyor_build_version) of fastText for 64 bit Windows, using VS2017'
provider: GitHub
auth_token:
secure: w6RhxxgTQp67I0w3mL1oSQXUZpmhnedD8uWFMyHaubLK0t0+cKWt5uLPCoHq2XbL
artifact: fastText-win64-%CONFIGURATION%
draft: false
artifact: build\fasttext-win64-latest-$(CONFIGURATION).zip
draft: true
prerelease: false
force_update: false
on:
branch: master
configuration: Release
appveyor_repo_tag: true
branch: master

0 comments on commit 50d21a0

Please sign in to comment.