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:
- conda-forge
- defaults
- nodefaults
dependencies:
- eigen
- cmake
- numpy
- pkg-config
- boost
- eigenpy
- urdfdom
......
name: C/C++ CI of Pinocchio
name: Test Pinocchio on Linux
on: [push,pull_request]
......
......@@ -12,12 +12,21 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest]
name: [windows-latest-clang-cl]
include:
- name: windows-latest-clang-cl
os: windows-2019
compiler: clang-cl
steps:
- uses: actions/checkout@v2
- name: Checkout submodules
run: |
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
with:
activate-environment: pinocchio
......@@ -31,21 +40,28 @@ jobs:
set BOOST_ROOT_1_69_0=
set BOOST_ROOT_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
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64
mkdir 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
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_BUILD_TYPE=Release ^
-DEIGENPY_SITELIB_ROOT=%CONDA_PREFIX% ^
-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
ctest --output-on-failure
Markdown is supported
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