1#!/bin/bash 2# 3 4# Remove large folder 5rm -rf /opt/hostedtoolcache 6 7# Install necessary softwares for Ubuntu. 8 9sudo dpkg --add-architecture i386 10sudo apt-get update 11sudo apt-get install -y \ 12 gcc-multilib \ 13 git \ 14 g++ \ 15 python3-pip \ 16 ninja-build \ 17 unifdef \ 18 p7zip-full \ 19 tofrodos \ 20 dos2unix \ 21 gawk \ 22 libssl-dev:i386 \ 23 libcmocka-dev:i386 \ 24 gcc-arm-none-eabi \ 25 software-properties-common 26 27wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add - 28CODENAME=$(lsb_release -c | cut -f2 -d':' | sed 's/\t//') 29apt-add-repository "deb https://apt.kitware.com/ubuntu/ $CODENAME main" 30 31python3 -m pip install --upgrade pip 32pip3 install gcovr==4.1 33pip install --upgrade cmake 34 35