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

Add CI job to test compilation on Windows with vcpkg #101

Merged
merged 1 commit into from
Jun 2, 2020
Merged
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
39 changes: 39 additions & 0 deletions .github/workflows/windows-vcpkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Windows vcpkg Workflow

on:
push:
traversaro marked this conversation as resolved.
Show resolved Hide resolved
branches:
- master
pull_request:
schedule:
# Execute a "nightly" build at 2 AM UTC
- cron: '0 2 * * *'

jobs:
build:
name: 'Windows vcpkg job'
runs-on: windows-latest

steps:
- uses: actions/checkout@v2

# Restore from cache the previously built ports. If "cache miss"
# then provision vcpkg, install desired ports, finally cache everything for the next run.
- name: Restore from cache and run vcpkg
uses: lukka/run-vcpkg@v3
with:
vcpkgArguments: '--triplet x64-windows boost-asio boost-math boost-smart-ptr protobuf'
# commit from vcpkg's master branch on 2020/06/01
vcpkgGitCommitId: 6d36e2a86baf8d227fc6dce587bd69997d67fb5e
gavanderhoorn marked this conversation as resolved.
Show resolved Hide resolved
# Workaround for https://github.com/ros-industrial/abb_libegm/pull/101#discussion_r433370614
# This line can be removed once protobuf is linked via its imported CMake targets
vcpkgDirectory: '${{ github.workspace }}/../vcpkg'
gavanderhoorn marked this conversation as resolved.
Show resolved Hide resolved

- name: Configure the project
shell: bash
run: |
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake ..
cmake --build . --config RelWithDebInfo
cmake --install . --config RelWithDebInfo