|
59 | 59 | uses: actions/cache@v5 |
60 | 60 | with: |
61 | 61 | path: .ccache |
62 | | - save-always: true |
63 | 62 | key: ccache-ubuntu-${{ matrix.container }}-${{ github.sha }} |
64 | 63 | restore-keys: ccache-ubuntu-${{ matrix.container }}- |
65 | 64 |
|
|
68 | 67 | sh -c "echo \"deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub $(lsb_release -cs) robotpkg\" >> /etc/apt/sources.list " |
69 | 68 | apt-key adv --fetch-keys http://robotpkg.openrobots.org/packages/debian/robotpkg.key |
70 | 69 |
|
71 | | - - name: Set and install dependencies |
| 70 | + - name: Set and install dependencies [Ubuntu 22.04] |
| 71 | + if: contains(matrix.container, '22.04') |
72 | 72 | run: | |
73 | 73 | export PYTHON3_VERSION=$(python3 -c "import sys; print(str(sys.version_info.major)+str(sys.version_info.minor))") |
74 | 74 | export APT_DEPENDENCIES="doxygen \ |
|
82 | 82 | libmimalloc-dev \ |
83 | 83 | python3-numpy \ |
84 | 84 | python3-pytest \ |
| 85 | + python3-matplotlib \ |
| 86 | + robotpkg-example-robot-data \ |
| 87 | + robotpkg-py${PYTHON3_VERSION}-example-robot-data \ |
| 88 | + robotpkg-py${PYTHON3_VERSION}-eigenpy \ |
| 89 | + robotpkg-py${PYTHON3_VERSION}-pinocchio" |
| 90 | + echo $APT_DEPENDENCIES |
| 91 | +
|
| 92 | + apt-get update -qq |
| 93 | + DEBIAN_FRONTEND="noninteractive" apt-get install -qq ${APT_DEPENDENCIES} |
| 94 | +
|
| 95 | + - name: Set and install dependencies [Ubuntu 24.04] |
| 96 | + if: contains(matrix.container, '24.04') |
| 97 | + run: | |
| 98 | + export PYTHON3_VERSION=$(python3 -c "import sys; print(str(sys.version_info.major)+str(sys.version_info.minor))") |
| 99 | + export APT_DEPENDENCIES="doxygen \ |
| 100 | + ninja-build \ |
| 101 | + ccache \ |
| 102 | + libomp-dev \ |
| 103 | + libomp5 \ |
| 104 | + libboost-all-dev \ |
| 105 | + libeigen3-dev \ |
| 106 | + libfmt-dev \ |
| 107 | + libmimalloc-dev \ |
| 108 | + catch2 \ |
| 109 | + python3-numpy \ |
| 110 | + python3-pytest \ |
| 111 | + python3-matplotlib \ |
85 | 112 | robotpkg-example-robot-data \ |
86 | 113 | robotpkg-py${PYTHON3_VERSION}-example-robot-data \ |
87 | 114 | robotpkg-py${PYTHON3_VERSION}-eigenpy \ |
@@ -116,10 +143,24 @@ jobs: |
116 | 143 | -DBUILD_EXAMPLES=ON \ |
117 | 144 | -DGENERATE_PYTHON_STUBS=ON \ |
118 | 145 | -DALIGATOR_TRACY_ENABLE=OFF \ |
119 | | - -DBUILD_WITH_UBUNTU_22_COMPATIBILITY=${{ ubuntu_22_compatibility }} |
| 146 | + -DBUILD_WITH_UBUNTU_22_COMPATIBILITY=${{ matrix.ubuntu_22_compatibility }} |
120 | 147 | ninja |
121 | | - ctest |
| 148 | + ctest --output-on-failure |
122 | 149 |
|
123 | 150 | - name: Display ccache statistics |
124 | 151 | run: | |
125 | 152 | ccache -sv |
| 153 | +
|
| 154 | + check: |
| 155 | + name: check-ubuntu |
| 156 | + |
| 157 | + needs: |
| 158 | + - ubuntu |
| 159 | + |
| 160 | + runs-on: ubuntu-latest |
| 161 | + |
| 162 | + steps: |
| 163 | + - name: Decide whether the needed jobs succeeded or failed |
| 164 | + uses: re-actors/alls-green@release/v1 |
| 165 | + with: |
| 166 | + jobs: ${{ toJSON(needs) }} |
0 commit comments