Verified Commit 16961fe7 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

ci: set CMAKE_PREFIX_PATH

ci: fix default channel

ci: remove pkg-config dependency for conda

ci: allows conda to autoupdate

ci: fix name

ci: rename file
parent a657bce1
name: eigenpy name: pinocchio
channels: channels:
- conda-forge - conda-forge
- defaults - nodefaults
dependencies: dependencies:
- eigen - eigen
- cmake - cmake
- numpy - numpy
- pkg-config
- boost - boost
- eigenpy - eigenpy
- urdfdom - urdfdom
......
name: C/C++ CI of Pinocchio name: Test Pinocchio on Linux
on: [push,pull_request] on: [push,pull_request]
......
...@@ -12,12 +12,21 @@ jobs: ...@@ -12,12 +12,21 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [windows-latest] name: [windows-latest-clang-cl]
include:
- name: windows-latest-clang-cl
os: windows-2019
compiler: clang-cl
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Checkout submodules - name: Checkout submodules
run: | run: |
git submodule update --init git submodule update --init
pushd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\Llvm\bin"
set PATH="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\Llvm\bin":%PATH%
./clang-cl.exe --version
- uses: goanpeca/setup-miniconda@v1 - uses: goanpeca/setup-miniconda@v1
with: with:
activate-environment: pinocchio activate-environment: pinocchio
...@@ -31,21 +40,28 @@ jobs: ...@@ -31,21 +40,28 @@ jobs:
set BOOST_ROOT_1_69_0= set BOOST_ROOT_1_69_0=
set BOOST_ROOT_1_72_0= set BOOST_ROOT_1_72_0=
set PATH=%PATH:C:\hostedtoolcache\windows\Boost\1.72.0;=% set PATH=%PATH:C:\hostedtoolcache\windows\Boost\1.72.0;=%
where cmake
del C:\Miniconda\envs\pinocchio\Library\bin\cmake.exe
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\vsdevcmd.bat"
echo %PATH%
dir "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Tools"
dir "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\Llvm\bin"
set PATH="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\Llvm\bin":%PATH%
echo %PATH%
:: start building :: start building
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64
mkdir build mkdir build
pushd build pushd build
dir %CONDA_PREFIX%\Library\pkgconfig
dir %CONDA_PREFIX%\Library\share\pkgconfig
set PKG_CONFIG_PATH=%CONDA_PREFIX%\Library\share\pkgconfig:%CONDA_PREFIX%\Library\share\pkgconfig set PKG_CONFIG_PATH=%CONDA_PREFIX%\Library\share\pkgconfig:%CONDA_PREFIX%\Library\share\pkgconfig
cmake ^ cmake ^
-G"Visual Studio 16 2019" -A x64 -T"ClangCl" ^ -G "Visual Studio 16 2019" -T "ClangCl" -DCMAKE_GENERATOR_PLATFORM=x64 ^
-DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^ -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^
-DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_BUILD_TYPE=Release ^
-DEIGENPY_SITELIB_ROOT=%CONDA_PREFIX% ^
-DPYTHON_EXECUTABLE=%CONDA_PREFIX%\python.exe ^ -DPYTHON_EXECUTABLE=%CONDA_PREFIX%\python.exe ^
-DBUILD_WITH_URDF_SUPPORT=ON -DBUILD_PYTHON_INTERFACE=ON ^
-DCMAKE_CXX_FLAGS="/EHsc /bigobj" ^
.. ..
cmake --build . --config Release --target install cmake --build . --config Release --target install
ctest --output-on-failure ctest --output-on-failure
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment