File tree Expand file tree Collapse file tree 6 files changed +19
-25
lines changed Expand file tree Collapse file tree 6 files changed +19
-25
lines changed Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
10
- rmw_microxrcedds_ci :
10
+ micro_ros_arduino :
11
11
runs-on : ubuntu-20.04
12
12
container : ubuntu:20.04
13
13
14
14
steps :
15
15
- uses : actions/checkout@v2
16
16
with :
17
- path : src/rmw-microxrcedds
17
+ path : checkout/
18
18
19
- - name : Download dependencies
19
+ - name : Build OpenCR
20
20
run : |
21
21
apt update
22
- apt install git curl
22
+ apt install -y git curl lib32z1 wget
23
23
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
24
- mkdir -p /root/Arduino/libraries/micro_ros_arduino-0.0.1/
25
-
26
- - uses : actions/checkout@v2
27
- with :
28
- path : /root/Arduino/libraries/micro_ros_arduino-0.0.1/
29
-
30
- - name : Build sample OpenCR
31
- run : |
24
+ mkdir -p /github/home/Arduino/libraries/micro_ros_arduino-0.0.1/
25
+ cp -R checkout/* /github/home/Arduino/libraries/micro_ros_arduino-0.0.1/
32
26
echo '''board_manager:
33
27
additional_urls:
34
28
- https://raw.githubusercontent.com/ROBOTIS-GIT/OpenCR/master/arduino/opencr_release/package_opencr_index.json''' > arduino-cli.yaml
29
+ export PATH=$PATH:/github/workspace/bin:/__w/micro_ros_arduino/micro_ros_arduino/bin
30
+ arduino-cli core install OpenCR:OpenCR -v
35
31
arduino-cli core update-index
36
- arduino-cli core install OpenCR:OpenCR
37
- arduino-cli compile --fqbn OpenCR:OpenCR:OpenCR /root/Arduino/libraries/micro_ros_arduino-0.0.1/examples/micro-ros_publisher -v
32
+ arduino-cli lib update-index
33
+ # Remove when https://github.com/ROBOTIS-GIT/OpenCR/pull/253 merged
34
+ export ORIGIN=$(pwd)
35
+ cd /github/home/.arduino15/packages/OpenCR/hardware/OpenCR/1.4.15
36
+ rm -rf platform.txt
37
+ wget https://raw.githubusercontent.com/ROBOTIS-GIT/OpenCR/44bcd82f48a933a7db5fae1bd69e97cda4932832/arduino/opencr_arduino/opencr/platform.txt
38
+ cd $ORIGIN
39
+ # Remove until here
40
+ arduino-cli compile --fqbn OpenCR:OpenCR:OpenCR /github/home/Arduino/libraries/micro_ros_arduino-0.0.1/examples/micro-ros_publisher -v
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ set(CMAKE_CXX_COMPILER $ENV{TOOLCHAIN_PREFIX}g++)
8
8
SET (CMAKE_C_COMPILER_WORKS 1 CACHE INTERNAL "" )
9
9
SET (CMAKE_CXX_COMPILER_WORKS 1 CACHE INTERNAL "" )
10
10
11
- set (FLAGS "-O2 -fsingle-precision-constant -mcpu=cortex-m4 -nostdlib -mthumb" CACHE STRING "" FORCE )
11
+ set (FLAGS "-O2 -fsingle-precision-constant -ffunction-sections -fdata-sections -fno-exceptions - mcpu=cortex-m4 -nostdlib -mthumb" CACHE STRING "" FORCE )
12
12
13
13
set (CMAKE_C_FLAGS_INIT "-std=c11 ${FLAGS} -DCLOCK_MONOTONIC=0 -D'__attribute__(x)='" CACHE STRING "" FORCE )
14
14
set (CMAKE_CXX_FLAGS_INIT "-std=c++14 ${FLAGS} -fno-rtti -DCLOCK_MONOTONIC=0 -D'__attribute__(x)='" CACHE STRING "" FORCE )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ set(CMAKE_CXX_COMPILER $ENV{TOOLCHAIN_PREFIX}g++)
8
8
SET (CMAKE_C_COMPILER_WORKS 1 CACHE INTERNAL "" )
9
9
SET (CMAKE_CXX_COMPILER_WORKS 1 CACHE INTERNAL "" )
10
10
11
- set (FLAGS "-O2 -mfloat-abi=hard -mfpu=fpv5-d16 -ffunction-sections -fdata-sections -nostdlib -mcpu=cortex-m7 -mthumb" CACHE STRING "" FORCE )
11
+ set (FLAGS "-O2 -mfloat-abi=hard -mfpu=fpv5-d16 -ffunction-sections -fdata-sections -fno-exceptions - nostdlib -mcpu=cortex-m7 -mthumb" CACHE STRING "" FORCE )
12
12
13
13
set (CMAKE_C_FLAGS_INIT "-std=c11 ${FLAGS} -DCLOCK_MONOTONIC=0 -D'__attribute__(x)='" CACHE STRING "" FORCE )
14
14
set (CMAKE_CXX_FLAGS_INIT "-std=c++14 ${FLAGS} -fno-rtti -DCLOCK_MONOTONIC=0 -D'__attribute__(x)='" CACHE STRING "" FORCE )
Original file line number Diff line number Diff line change 13
13
// TODO: This should be fixed
14
14
#if defined(ARDUINO_TEENSY32 )
15
15
16
- void usleep (uint32_t usec ){
17
- delay (usec /1000 );
18
- }
19
-
20
- // Fake functions
21
- int mkdir (const char * abs_path , uint32_t mode ){
22
- return 0 ;
23
- }
24
-
25
16
void _write (){
26
17
}
27
18
You can’t perform that action at this time.
0 commit comments