Skip to content

Commit

Permalink
Merge pull request #122 from robotology/fix/ci
Browse files Browse the repository at this point in the history
Install catch2 on macOS CI and fix the tag of m.css
  • Loading branch information
GiulioRomualdi authored Jun 28, 2022
2 parents 04bd51f + ebf5c1e commit c7f0e30
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- cron: '0 2 * * *'

env:
osqp_TAG: v0.6.0
osqp_TAG: v0.6.2
vcpkg_robotology_TAG: v0.0.3
Catch2_TAG: v2.12.1
# Overwrite the VCPKG_INSTALLATION_ROOT env variable defined by GitHub Actions to point to our vcpkg
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Dependencies [macOS]
if: matrix.os == 'macOS-latest'
run: |
brew install eigen catch2
brew install eigen
- name: Dependencies [Ubuntu]
if: matrix.os == 'ubuntu-latest'
Expand Down Expand Up @@ -109,19 +109,15 @@ jobs:
cmake -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install/deps ..
cmake --build . --config ${{ matrix.build_type }} --target install
- name: Source-based Dependencies [Ubuntu]
if: steps.cache-source-deps.outputs.cache-hit != 'true' && matrix.os == 'ubuntu-latest'
shell: bash
run: |
git clone -b ${Catch2_TAG} https://github.com/catchorg/Catch2.git
cd Catch2
mkdir -p build
cd build
cmake -DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/install/deps \
-DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install/deps \
-DBUILD_TESTING=OFF ..
cmake --build . --config ${{ matrix.build_type }} --target install
# catch 2
git clone -b ${Catch2_TAG} https://github.com/catchorg/Catch2.git
cd Catch2
mkdir -p build
cd build
cmake -DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/install/deps \
-DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install/deps \
-DBUILD_TESTING=OFF ..
cmake --build . --config ${{ matrix.build_type }} --target install
# ===================
# CMAKE-BASED PROJECT
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches: master

env:
mcss_TAG: 374ec55a6610c1856e7374aea7dc1535ed8b64f8

jobs:
build:
runs-on: ubuntu-20.04
Expand All @@ -24,7 +27,9 @@ jobs:
- name: Fetch m.css
run: |
cd ${GITHUB_WORKSPACE}
git clone git://github.com/mosra/m.css
git clone https://github.com/mosra/m.css.git
cd m.css
git checkout ${mcss_TAG}
- name: Build docs
run: |
Expand Down

0 comments on commit c7f0e30

Please sign in to comment.