Skip to content

Commit 1678c26

Browse files
authored
Merge pull request #373 from jcarpent/devel
Sync submodule CMake
2 parents a2dbf76 + 22ed283 commit 1678c26

File tree

5 files changed

+13
-17
lines changed

5 files changed

+13
-17
lines changed

.github/workflows/macos-linux-conda.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
name: ${{ matrix.os }} - ${{ matrix.build_type }} ${{ matrix.cxx_options }}
88
runs-on: ${{ matrix.os }}
99
env:
10-
CCACHE_DIR: .ccache # Enable ccache
10+
CCACHE_DIR: ${{ matrix.CCACHE_DIR }}
1111

1212
strategy:
1313
fail-fast: false
@@ -16,6 +16,11 @@ jobs:
1616
cxx_options: ['', '-mavx2']
1717
build_type: [Release, Debug]
1818

19+
include:
20+
- os: ubuntu-latest
21+
CCACHE_DIR: /home/runner/.ccache
22+
- os: macos-latest
23+
CCACHE_DIR: /Users/runner/.ccache
1924

2025
exclude:
2126
- build_type: Debug
@@ -42,6 +47,9 @@ jobs:
4247
path: ${{ env.CCACHE_DIR }}
4348
key: ccache-${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.cxx_options }}
4449

50+
- name: Prepare cache dir
51+
run: sudo mkdir -p ${CCACHE_DIR}/tmp && sudo chown -R $(id -un) ${CCACHE_DIR}
52+
4553
- name: Install cmake and update conda
4654
shell: bash -l {0}
4755
run: |

.github/workflows/ros_ci.yml

+1-10
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- {ROS_DISTRO: rolling}
1818
- {ROS_DISTRO: humble}
1919
env:
20-
CCACHE_DIR: /github/home/.ccache # Enable ccache
20+
CCACHE_DIR: /home/runner/.ccache # Enable ccache
2121
PRERELEASE: true
2222
BUILDER: colcon
2323
runs-on: ubuntu-latest
@@ -30,15 +30,6 @@ jobs:
3030
with:
3131
path: ${{ env.CCACHE_DIR }}
3232
key: ccache-${{ matrix.env.ROS_DISTRO }}-${{ matrix.env.ROS_REPO }}
33-
- name: Echo CCACHE_DIR
34-
shell: bash -l {0}
35-
env: ${{ matrix.env }}
36-
run: |
37-
echo CCACHE_DIR=${CCACHE_DIR}
38-
- name: Echo CCACHE_DIR
39-
shell: bash -l {0}
40-
run: |
41-
echo CCACHE_DIR=${CCACHE_DIR}
4233
# Run industrial_ci
4334
- uses: 'ros-industrial/industrial_ci@6a8f546cbd31fbd5c9f77e3409265c8b39abc3d6'
4435
env: ${{ matrix.env }}

python/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2014-2021 CNRS INRIA
2+
# Copyright (c) 2014-2023 CNRS INRIA
33
#
44

55
# --- LIBRARY --- #
@@ -9,6 +9,7 @@ set(PYWRAP
99
PARENT_SCOPE)
1010

1111
make_directory("${${PROJECT_NAME}_BINARY_DIR}/python/${PROJECT_NAME}")
12+
include(${JRL_CMAKE_MODULES}/python-helpers.cmake)
1213
include("${JRL_CMAKE_MODULES}/stubs.cmake")
1314

1415
add_custom_target(python)

unittest/CMakeLists.txt

-4
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ function(config_bind_optional tagname opttype)
4949
configure_file(python/test_optional.py.in
5050
${CMAKE_CURRENT_BINARY_DIR}/python/${py_file})
5151
add_lib_unit_test(${MODNAME})
52-
message(
53-
STATUS
54-
"Adding unit test py-optional-${tagname} with file ${py_file} and module ${MODNAME}"
55-
)
5652
add_python_unit_test("py-optional-${tagname}" "unittest/python/${py_file}"
5753
"unittest")
5854
endfunction()

0 commit comments

Comments
 (0)