Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds artifacts for AppVeyor #17

Merged
merged 2 commits into from
May 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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