forked from ros-industrial/abb_libegm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI job to test compilation on Windows with vcpkg
- Loading branch information
1 parent
8424448
commit de042af
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Windows vcpkg Workflow | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
# * is a special character in YAML so you have to quote this string | ||
# 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@master | ||
|
||
# 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 | ||
vcpkgDirectory: '${{ github.workspace }}/../vcpkg' | ||
|
||
- name: Configure the project | ||
shell: bash | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_TOOLCHAIN_FILE=${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake .. | ||
cmake --build . --config Release | ||
cmake --install . --config Release |