Skip to content

Commit

Permalink
Merge pull request #17 from RnDome/ms_artifacts
Browse files Browse the repository at this point in the history
Adds artifacts for MS builds from AppVeyor
  • Loading branch information
kpp committed May 12, 2017
2 parents 9bb96bd + c90b3c4 commit 817d66c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 14 deletions.
27 changes: 16 additions & 11 deletions appveyor.yml → .appveyor.yml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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}")

Expand Down Expand Up @@ -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)
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down

0 comments on commit 817d66c

Please sign in to comment.