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