diff --git a/docker/Dockerfile.ci_qemu b/docker/Dockerfile.ci_qemu index e309bb5f0e6c..9920b1f70e8b 100644 --- a/docker/Dockerfile.ci_qemu +++ b/docker/Dockerfile.ci_qemu @@ -65,6 +65,10 @@ COPY install/ubuntu_init_zephyr_project.sh /install/ubuntu_init_zephyr_project.s RUN bash /install/ubuntu_install_zephyr.sh ENV ZEPHYR_BASE=/opt/zephyrproject/zephyr +# Arduino deps +COPY install/ubuntu_install_arduino.sh /install/ubuntu_install_arduino.sh +RUN bash /install/ubuntu_install_arduino.sh + # Install ONNX COPY install/ubuntu_install_onnx.sh /install/ubuntu_install_onnx.sh RUN bash /install/ubuntu_install_onnx.sh diff --git a/docker/install/ubuntu_install_arduino.sh b/docker/install/ubuntu_install_arduino.sh new file mode 100644 index 000000000000..2b4b8d80fce7 --- /dev/null +++ b/docker/install/ubuntu_install_arduino.sh @@ -0,0 +1,31 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e +set -u +set -o pipefail + +export DEBIAN_FRONTEND=noninteractive +apt-get install -y ca-certificates + +# Install arduino-cli latest version +wget -O - https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh -s + +# Install supported cores from those URLS +arduino-cli core install arduino:mbed_nano +arduino-cli core install arduino:sam