From c85ef9a47b3ef329a07fcbb48a12a88635dc2ef9 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 24 Apr 2020 17:59:41 +0200 Subject: [PATCH 1/9] GitHub Actions: Add build on clean docker image This permits to test also on: * Ubuntu Focal * Debian Stable * Debian Sid --- .github/workflows/ci.yml | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6687a8f4b..88b68c2d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,10 +12,39 @@ on: # * is a special character in YAML so you have to quote this string # Execute a "nightly" build at 2 AM UTC - cron: '0 2 * * *' - - + + jobs: - build: + docker-build: + name: '[docker:${{ matrix.project_tags }}@${{ matrix.docker_image }}@${{ matrix.build_type }}]' + runs-on: ubuntu-latest + strategy: + matrix: + build_type: [Debug, Release] + project_tags: [Stable, Unstable] + docker_image: [ubuntu:focal, debian:stable, debian:sid] + container: + image: ${{ matrix.docker_image }} + + steps: + - name: Dependencies [Docker] + if: matrix.os == 'ubuntu-latest' + run: | + chmod +x ./.ci/install_debian.sh + sudo ./.ci/install_debian.sh + + - name: Configure [Docker] + run: | + mkdir -p build + cd build + cmake -G"${{ matrix.cmake_generator }}" -DROBOTOLOGY_USES_GAZEBO:BOOL=ON -DROBOTOLOGY_USES_OCTAVE:BOOL=ON -DROBOTOLOGY_USES_PYTHON:BOOL=ON -DROBOTOLOGY_ENABLE_ROBOT_TESTING:BOOL=ON -DROBOTOLOGY_ENABLE_DYNAMICS:BOOL=ON -DROBOTOLOGY_ENABLE_HUMAN_DYNAMICS:BOOL=ON -DROBOTOLOGY_ENABLE_ICUB_HEAD:BOOL=ON -DROBOTOLOGY_ENABLE_ICUB_BASIC_DEMOS:BOOL=ON -DNON_INTERACTIVE_BUILD:BOOL=TRUE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DROBOTOLOGY_PROJECT_TAGS=${{ matrix.project_tags }} .. + + - name: Build [Docker] + run: | + cd build + cmake --build . --config ${{ matrix.build_type }} + + normal-build: name: '[${{ matrix.project_tags }}@${{ matrix.os }}@${{ matrix.build_type }}]' runs-on: ${{ matrix.os }} strategy: From ac3c4e6b19f1e4b010c0ed4a9b0218f3e16bcf6c Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 24 Apr 2020 18:02:09 +0200 Subject: [PATCH 2/9] fix --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88b68c2d1..97d236cf9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,10 @@ jobs: matrix: build_type: [Debug, Release] project_tags: [Stable, Unstable] - docker_image: [ubuntu:focal, debian:stable, debian:sid] + docker_image: + - "ubuntu:focal" + - "debian:stable" + - "debian:sid" container: image: ${{ matrix.docker_image }} From 8df25ae29dc97b2a9f5a7ccd3113294a72ba097e Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 24 Apr 2020 18:03:18 +0200 Subject: [PATCH 3/9] Update ci.yml --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97d236cf9..be7085816 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,6 @@ jobs: steps: - name: Dependencies [Docker] - if: matrix.os == 'ubuntu-latest' run: | chmod +x ./.ci/install_debian.sh sudo ./.ci/install_debian.sh From 6b5e9fd62d481a8fcbf0edf25a0c39ec4f859bbd Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 24 Apr 2020 18:05:19 +0200 Subject: [PATCH 4/9] Update ci.yml --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be7085816..569c04c65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,8 @@ jobs: image: ${{ matrix.docker_image }} steps: + - uses: actions/checkout@master + - name: Dependencies [Docker] run: | chmod +x ./.ci/install_debian.sh From d3385d08c06cf46e6e74cbc507fa86543cb39645 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 24 Apr 2020 18:06:21 +0200 Subject: [PATCH 5/9] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 569c04c65..cfb754d1c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: - name: Dependencies [Docker] run: | chmod +x ./.ci/install_debian.sh - sudo ./.ci/install_debian.sh + ./.ci/install_debian.sh - name: Configure [Docker] run: | From ef46c13e8628bf1e571a2fe80af244188e1ee926 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 24 Apr 2020 18:13:27 +0200 Subject: [PATCH 6/9] Update ci.yml --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cfb754d1c..2e1adbdaa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,8 +20,9 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - build_type: [Debug, Release] + build_type: [Debug] project_tags: [Stable, Unstable] + cmake_generator: "Ninja" docker_image: - "ubuntu:focal" - "debian:stable" From cb65033c1700c78b5b671667ad6914317902f101 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 24 Apr 2020 18:14:16 +0200 Subject: [PATCH 7/9] Update ci.yml --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e1adbdaa..d41922525 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,8 @@ jobs: matrix: build_type: [Debug] project_tags: [Stable, Unstable] - cmake_generator: "Ninja" + cmake_generator: + - "Ninja" docker_image: - "ubuntu:focal" - "debian:stable" From 970ec3cc7a7ea267ea59c913f9a91160d20e8173 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 24 Apr 2020 18:26:11 +0200 Subject: [PATCH 8/9] Update ci.yml --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d41922525..c12c3af72 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,8 @@ jobs: docker_image: - "ubuntu:focal" - "debian:stable" - - "debian:sid" + # Workaround for https://github.com/robotology/robotology-superbuild/issues/383 + # - "debian:sid" container: image: ${{ matrix.docker_image }} From 6cc7f7d0b97fe411121a03611c500d02ef0e1fc1 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 24 Apr 2020 18:47:00 +0200 Subject: [PATCH 9/9] Update ci.yml --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c12c3af72..2fae0ce86 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,8 +43,9 @@ jobs: - name: Configure [Docker] run: | mkdir -p build - cd build - cmake -G"${{ matrix.cmake_generator }}" -DROBOTOLOGY_USES_GAZEBO:BOOL=ON -DROBOTOLOGY_USES_OCTAVE:BOOL=ON -DROBOTOLOGY_USES_PYTHON:BOOL=ON -DROBOTOLOGY_ENABLE_ROBOT_TESTING:BOOL=ON -DROBOTOLOGY_ENABLE_DYNAMICS:BOOL=ON -DROBOTOLOGY_ENABLE_HUMAN_DYNAMICS:BOOL=ON -DROBOTOLOGY_ENABLE_ICUB_HEAD:BOOL=ON -DROBOTOLOGY_ENABLE_ICUB_BASIC_DEMOS:BOOL=ON -DNON_INTERACTIVE_BUILD:BOOL=TRUE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DROBOTOLOGY_PROJECT_TAGS=${{ matrix.project_tags }} .. + cd build + # Octave is disabled as a workaround for https://github.com/robotology/robotology-superbuild/issues/384 + cmake -G"${{ matrix.cmake_generator }}" -DROBOTOLOGY_USES_GAZEBO:BOOL=ON -DROBOTOLOGY_USES_OCTAVE:BOOL=OFF -DROBOTOLOGY_USES_PYTHON:BOOL=ON -DROBOTOLOGY_ENABLE_ROBOT_TESTING:BOOL=ON -DROBOTOLOGY_ENABLE_DYNAMICS:BOOL=ON -DROBOTOLOGY_ENABLE_HUMAN_DYNAMICS:BOOL=ON -DROBOTOLOGY_ENABLE_ICUB_HEAD:BOOL=ON -DROBOTOLOGY_ENABLE_ICUB_BASIC_DEMOS:BOOL=ON -DNON_INTERACTIVE_BUILD:BOOL=TRUE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DROBOTOLOGY_PROJECT_TAGS=${{ matrix.project_tags }} .. - name: Build [Docker] run: |