Skip to content

Commit

Permalink
Update vcpkg version to 27fd32e91c172e8b8a2ee338efc088a0c0103348 and …
Browse files Browse the repository at this point in the history
…add assimp and graphviz (#51)
  • Loading branch information
traversaro authored Apr 13, 2022
1 parent 8de83a2 commit c7440ec
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 29 deletions.
69 changes: 43 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: CI

on:
push:
branches:
- master
pull_request:
release:
types: [published]
Expand Down Expand Up @@ -32,7 +34,7 @@ jobs:
cd C:/robotology
git clone https://github.com/Microsoft/vcpkg
cd vcpkg
git checkout cdd51899f6ae3736bfbe936f9e387f86d4a63a58
git checkout 27fd32e91c172e8b8a2ee338efc088a0c0103348
C:/robotology/vcpkg/bootstrap-vcpkg.sh
git clone https://github.com/robotology/robotology-vcpkg-ports C:/robotology/robotology-vcpkg-ports
cd C:/robotology/robotology-vcpkg-ports
Expand All @@ -41,7 +43,7 @@ jobs:
- name: Install vcpkg ports
shell: bash
run: |
C:/robotology/vcpkg/vcpkg.exe --overlay-ports=C:/robotology/robotology-vcpkg-ports --overlay-ports=${GITHUB_WORKSPACE}/custom-ports install --triplet x64-windows ace eigen3 gsl libjpeg-turbo opencv portaudio sdl1 sdl2 qt5-base[latest] qt5-declarative qt5-multimedia qt5-quickcontrols qt5-quickcontrols2 sqlite3[core,tool] tinyxml
C:/robotology/vcpkg/vcpkg.exe --overlay-ports=C:/robotology/robotology-vcpkg-ports --overlay-ports=${GITHUB_WORKSPACE}/custom-ports install --triplet x64-windows ace eigen3 graphviz gsl libjpeg-turbo opencv portaudio sdl1 sdl2 qt5-base[latest] qt5-declarative qt5-multimedia qt5-quickcontrols qt5-quickcontrols2 sqlite3[core,tool] tinyxml
C:/robotology/vcpkg/vcpkg.exe list
# Remove temporary files https://github.com/Microsoft/vcpkg/blob/master/docs/about/faq.md#how-can-i-remove-temporary-files
Expand Down Expand Up @@ -74,17 +76,16 @@ jobs:
cp scripts/removePathsFromUserEnvVariables-vcpkg.ps1 /c/robotology/scripts
cp scripts/removePathsFromUserEnvVariables-deps.ps1 /c/robotology/scripts
- uses: actions/upload-artifact@v1
with:
name: vcpkg-robotology-yarp-deps-only
path: C:/robotology

- name: Prepare release file
if: github.event_name == 'release'
- name: Prepare artifacts and release file
shell: cmd
run: |
7z a vcpkg-robotology-yarp-only.zip C:\robotology
- uses: actions/upload-artifact@v3
with:
name: vcpkg-robotology-yarp-deps-only
path: vcpkg-robotology-yarp-only.zip

- name: Upload Release Asset
if: github.event_name == 'release'
uses: actions/upload-release-asset@v1.0.1
Expand All @@ -104,10 +105,14 @@ jobs:
steps:
- uses: actions/checkout@v1

- uses: actions/download-artifact@v1
- uses: actions/download-artifact@v3
with:
name: vcpkg-robotology-yarp-deps-only
path: C:/robotology

- name: Extract artifact
shell: bash
run: |
7z x -y -oC:/ vcpkg-robotology-yarp-only.zip
- name: Check free space
shell: bash
Expand All @@ -117,7 +122,7 @@ jobs:
- name: Install vcpkg ports
shell: bash
run: |
C:/robotology/vcpkg/vcpkg.exe --overlay-ports=C:/robotology/robotology-vcpkg-ports --overlay-ports=${GITHUB_WORKSPACE}/custom-ports install --triplet x64-windows asio boost-circular-buffer boost-asio boost-bind boost-process boost-dll boost-filesystem boost-system freeglut esdcan-binary glew glfw3 nlohmann-json ode openssl libxml2 matio ipopt-binary cppad irrlicht spdlog
C:/robotology/vcpkg/vcpkg.exe --overlay-ports=C:/robotology/robotology-vcpkg-ports --overlay-ports=${GITHUB_WORKSPACE}/custom-ports install --triplet x64-windows asio assimp boost-circular-buffer boost-asio boost-bind boost-process boost-dll boost-filesystem boost-system freeglut esdcan-binary glew glfw3 nlohmann-json ode openssl libxml2 matio ipopt-binary cppad irrlicht spdlog
C:/robotology/vcpkg/vcpkg.exe list
# Remove temporary files https://github.com/Microsoft/vcpkg/blob/master/docs/about/faq.md#how-can-i-remove-temporary-files
Expand All @@ -137,17 +142,16 @@ jobs:
rm -rf /c/robotology/vcpkg/installed/x64-windows/bin/*.pdb
rm -rf /c/robotology/vcpkg/installed/x64-windows/debug/bin/*.pdb
- uses: actions/upload-artifact@v1
with:
name: vcpkg-robotology
path: C:/robotology

- name: Prepare release file
if: github.event_name == 'release'
- name: Prepare artifact and release file
shell: cmd
run: |
7z a vcpkg-robotology.zip C:\robotology
- uses: actions/upload-artifact@v3
with:
name: vcpkg-robotology
path: vcpkg-robotology.zip

- name: Upload Release Asset
if: github.event_name == 'release'
uses: actions/upload-release-asset@v1.0.1
Expand All @@ -166,10 +170,14 @@ jobs:
steps:
- uses: actions/checkout@v1

- uses: actions/download-artifact@v1
- uses: actions/download-artifact@v3
with:
name: vcpkg-robotology
path: C:/robotology

- name: Extract artifact
shell: bash
run: |
7z x -y -oC: vcpkg-robotology.zip
- name: Check free space
shell: bash
Expand Down Expand Up @@ -200,10 +208,15 @@ jobs:
rm -rf /c/robotology/vcpkg/installed/x64-windows/bin/*.pdb
rm -rf /c/robotology/vcpkg/installed/x64-windows/debug/bin/*.pdb
- uses: actions/upload-artifact@v1
- name: Prepare artifacts file
shell: cmd
run: |
7z a vcpkg-robotology-with-gazebo-deps.zip C:\robotology
- uses: actions/upload-artifact@v3
with:
name: vcpkg-robotology-with-gazebo-deps
path: C:/robotology
path: vcpkg-robotology-with-gazebo-deps.zip

build-with-gazebo:
runs-on: windows-2019
Expand All @@ -212,10 +225,14 @@ jobs:
steps:
- uses: actions/checkout@v1

- uses: actions/download-artifact@v1
- uses: actions/download-artifact@v3
with:
name: vcpkg-robotology-with-gazebo-deps
path: C:/robotology

- name: Extract artifact
shell: bash
run: |
7z x -y -oC: vcpkg-robotology-with-gazebo-deps.zip
- name: Check free space
shell: bash
Expand Down Expand Up @@ -244,7 +261,7 @@ jobs:
- name: Upload logs on failures
if: ${{ failure() }}
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: gazebo-colcon-logs
path: C:/robotology/gazebo/log
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,3 @@ To use the script in a GitHub Action script, you can use the following snippet:

You can then specify the `CMAKE_TOOLCHAIN_FILE` for the CMake projects that you want that use the installed dependencies, or execute the enviroment variables
setup scripts.


2 changes: 1 addition & 1 deletion gazebo-repos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ repositories:
gazebo:
type: git
url: https://github.com/osrf/gazebo
version: 0d1642979382d95ae5a120fdccaeb7ad4c51cf36
version: gazebo11_11.10.2

0 comments on commit c7440ec

Please sign in to comment.