diff --git a/appveyor.yml b/.appveyor.yml similarity index 50% rename from appveyor.yml rename to .appveyor.yml index 3a8a315..900818d 100644 --- a/appveyor.yml +++ b/.appveyor.yml @@ -1,28 +1,33 @@ -version: "{build}" - +os: Visual Studio 2017 platform: Any CPU configuration: - Debug - Release -os: Visual Studio 2017 - clone_depth: 1 - clone_folder: C:\projects\bwapi-c +branches: + only: + - master + except: + - gh-pages + +test: off + +artifacts: + - path: build\bwapi-c-*.zip + install: - set PATH=C:\Program Files\Git\mingw64\bin;%PATH% before_build: - - cmd: sh -c "mkdir deps" - - cmd: sh -c "curl --silent --retry 10 -kLy 5 -o deps/BWAPI_420.7z https://github.com/bwapi/bwapi/releases/download/v4.2.0/BWAPI_420.7z" - - cmd: sh -c "7z x -odeps/BWAPI_420 -y deps/BWAPI_420.7z" + - cmd: mkdir deps + - cmd: curl --silent --retry 10 -kLy 5 -o deps/BWAPI_420.7z "https://github.com/bwapi/bwapi/releases/download/v4.2.0/BWAPI_420.7z" + - cmd: 7z x -odeps\BWAPI_420 -y deps\BWAPI_420.7z - cmd: mkdir build - cmd: cd build - cmd: cmake .. -G"Visual Studio 15 2017" -DBWAPI_PATH="C:\projects\bwapi-c\deps\BWAPI_420\Release_Binary" build_script: - - cmd: cmake --build . --config %configuration% - -test: off + - cmd: cmake --build . --config %configuration% --target package diff --git a/CMakeLists.txt b/CMakeLists.txt index e167f69..773f03e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.2) -project(bwapi) +project(bwapi-c VERSION 0.0.1) list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}") @@ -27,3 +27,8 @@ if (MSVC) add_library(ExampleDLL MODULE "${CMAKE_SOURCE_DIR}/example/Dll.cpp") target_link_libraries(ExampleDLL BWAPIC) endif() + +install(DIRECTORY include/ DESTINATION include) +install(TARGETS BWAPIC DESTINATION lib) +set(CPACK_GENERATOR "ZIP") +include(CPack) diff --git a/README.md b/README.md index 92dd045..3e2549f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ bwapi-c ======= -[![Build Status](https://travis-ci.org/RnDome/bwapi-c.svg)](https://travis-ci.org/RnDome/bwapi-c) [![Build status](https://ci.appveyor.com/api/projects/status/3l3mngo6cf33hdrw?svg=true)](https://ci.appveyor.com/project/kpp/bwapi-c) +[![Build Status](https://travis-ci.org/RnDome/bwapi-c.svg?branch=master)](https://travis-ci.org/RnDome/bwapi-c/branches) [![Build status](https://ci.appveyor.com/api/projects/status/3l3mngo6cf33hdrw/branch/master?svg=true)](https://ci.appveyor.com/project/kpp/bwapi-c/branch/master) C language bindings to the BWAPI library @@ -20,7 +20,7 @@ bwapi-c/build $ make `BWAPI_PATH` must point to directory with BWAPI release. # Usage on Linux -You should get `BWAPIC.lib` that was build on Windows with MSVC. +You should get `BWAPIC.lib` that was build on Windows with MSVC. See [AppVeyor build artifacts](https://ci.appveyor.com/project/kpp/bwapi-c/branch/master). ``` ~/bwapi-c/example $ ls