Skip to content

Commit

Permalink
Add Windows CI on GitHub Actions (#2286)
Browse files Browse the repository at this point in the history
* Add GitHub Actions workflow for Windows CI

* Add Windows CI status badge

* Add vcpkg caching to GH Windows CI

* Fix test binary path in Windows CI

* Disable test step to populate cache

* Revert "Disable test step to populate cache"

This reverts commit 5b4fa49.

* Try to reduce warning output on MSVC

* drop: compile error on Windows

* Revert "drop: compile error on Windows"

This reverts commit e98c7af.

* test failure

* Revert "test failure"

This reverts commit caca4ab.
  • Loading branch information
matteblair authored Aug 11, 2021
1 parent 3d356a7 commit 60bdf49
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Windows CI"
on: push
jobs:
build-test-windows:
name: "Build and Test on Windows"
runs-on: windows-2019
steps:
- name: "Checkout Repository"
uses: actions/checkout@v2
with:
submodules: true
- name: "Cache vcpkg binaries"
uses: actions/cache@v2
with:
path: ~\AppData\Local\vcpkg\archives
key: vcpkg-v1-${{ hashFiles('vcpkg.json') }}
restore-keys: vcpkg-v1-
- name: "Configure CMake"
run: cmake -S . -B .\build -G "Visual Studio 16 2019" \
-DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake" \
-DCMAKE_BUILD_TYPE=Debug
-DTANGRAM_BUILD_TESTS=1
- name: "Run Build"
run: cmake --build .\build
- name: "Run Tests"
run: .\tests\Debug\tests.out.exe
working-directory: .\build
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Tangram ES
==========

[![CircleCI](https://circleci.com/gh/tangrams/tangram-es.svg?style=shield)](https://app.circleci.com/pipelines/github/tangrams/tangram-es)
[![Windows CI](https://github.com/tangrams/tangram-es/actions/workflows/windows.yml/badge.svg)](https://github.com/tangrams/tangram-es/actions/workflows/windows.yml)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md)

Tangram ES is a C++ library for rendering 2D and 3D maps from vector data using OpenGL ES. It is a counterpart to [Tangram](https://github.com/tangrams/tangram).
Expand Down
4 changes: 4 additions & 0 deletions core/deps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ endif()
set(GLM_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/glm)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/alfons)
target_compile_definitions(alfons PRIVATE GLM_FORCE_CTOR_INIT)
if(MSVC)
# Use a lower warning level on MSVC because -Wall produces excessive output.
target_compile_options(alfons PUBLIC "/W1")
endif()

if (TANGRAM_MBTILES_DATASOURCE)
## SQLiteCpp ##
Expand Down

0 comments on commit 60bdf49

Please sign in to comment.