-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate CI to setup-micromamba (#240)
- Loading branch information
1 parent
e0aba43
commit a30a6fc
Showing
2 changed files
with
37 additions
and
25 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 |
---|---|---|
|
@@ -22,44 +22,40 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: conda-incubator/setup-miniconda@v2 | ||
- uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
mamba-version: "*" | ||
channels: conda-forge,robotology | ||
channel-priority: true | ||
environment-file: ci_env.yml | ||
|
||
- name: Dependencies | ||
shell: bash -l {0} | ||
run: | | ||
# Compilation related dependencies | ||
mamba install cmake compilers ninja pkg-config | ||
# Actual dependencies | ||
mamba install eigen blockfactory idyntree osqp-eigen qpoases yarp | ||
- name: Configure VS Toolchain (Windows) | ||
if: contains(matrix.os, 'windows') | ||
uses: ilammy/[email protected] | ||
|
||
- name: Configure [Linux&macOS] | ||
if: contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu') | ||
- name: Setup compilation env variables (Windows) | ||
if: contains(matrix.os, 'windows') | ||
shell: bash -l {0} | ||
run: | | ||
mkdir -p build | ||
cd build | ||
cmake -GNinja -DBUILD_TESTING:BOOL=ON -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} .. | ||
- name: Configure [Windows] | ||
if: contains(matrix.os, 'windows') | ||
bash_vc_install=${VCToolsInstallDir//\\//} | ||
compiler_path=${bash_vc_install}bin/Hostx64/x64/cl.exe | ||
echo "CC=${compiler_path}" >> $GITHUB_ENV | ||
echo "CXX=${compiler_path}" >> $GITHUB_ENV | ||
- name: Configure | ||
shell: bash -l {0} | ||
run: | | ||
mkdir -p build | ||
cd build | ||
cmake -G"Visual Studio 16 2019" -DBUILD_TESTING:BOOL=ON -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} .. | ||
cd build | ||
cmake -GNinja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | ||
-DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install -DBUILD_TESTING:BOOL=ON .. | ||
- name: Build | ||
- name: Build | ||
shell: bash -l {0} | ||
run: | | ||
cd build | ||
cmake --build . --config ${{ matrix.build_type }} | ||
cmake --build . --config ${{ matrix.build_type }} | ||
- name: Test | ||
if: contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu') | ||
shell: bash -l {0} | ||
run: | | ||
cd build | ||
ctest --output-on-failure -C ${{ matrix.build_type }} | ||
ctest --repeat until-pass:5 --output-on-failure -C ${{ matrix.build_type }} . |
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,16 @@ | ||
name: wbtoolboxdev | ||
channels: | ||
- conda-forge | ||
- robotology | ||
dependencies: | ||
- cmake | ||
- compilers | ||
- make | ||
- ninja | ||
- pkg-config | ||
- eigen | ||
- blockfactory | ||
- idyntree | ||
- osqp-eigen | ||
- qpoases | ||
- yarp |