Skip to content

Commit 0798dcf

Browse files
committed
create Dockerfile for build verification
This Dockerfile can be used to verify that the project builds correctly without any errors. Signed-off-by: Dhruva Gole <[email protected]>
1 parent ab23c9f commit 0798dcf

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (c) 2022 Dhruva Gole <[email protected]>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
FROM zephyrprojectrtos/ci:latest AS base
5+
6+
RUN \
7+
west init -m https://github.com/zephyrproject-rtos/gsoc-2022-arduino-core.git && west update \
8+
&& git clone https://github.com/arduino/ArduinoCore-API.git ArduinoCore-API \
9+
&& sed '/WCharacter.h/ s/./\/\/ &/' ArduinoCore-API/api/ArduinoAPI.h > ArduinoCore-API/api/tmpArduinoAPI.h \
10+
&& mv ArduinoCore-API/api/tmpArduinoAPI.h ArduinoCore-API/api/ArduinoAPI.h \
11+
&& cp -r /ArduinoCore-API/api /modules/lib/Arduino-Zephyr-API/cores/arduino/. \
12+
&& cd modules/lib/Arduino-Zephyr-API && ls -la \
13+
&& west build -p -b arduino_nano_33_ble samples/blinky_arduino \
14+
&& printf '%s\n' "Module Successfully setup and built..."

0 commit comments

Comments
 (0)