Add scripts

This commit is contained in:
TiejunZhou
2023-12-01 02:16:43 +00:00
parent 521fe0bacb
commit fcce06af34
3 changed files with 32 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
$(dirname `realpath $0`)/../test/cmake/run.sh build all
+28
View File
@@ -0,0 +1,28 @@
#!/bin/bash
#
# Remove large folder
rm -rf /opt/hostedtoolcache
# Install necessary softwares for Ubuntu.
sudo apt-get update
sudo apt-get install -y \
gcc-multilib \
git \
g++ \
python3-pip \
ninja-build \
unifdef \
p7zip-full \
tofrodos \
gawk \
software-properties-common
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
CODENAME=$(lsb_release -c | cut -f2 -d':' | sed 's/\t//')
apt-add-repository "deb https://apt.kitware.com/ubuntu/ $CODENAME main"
python3 -m pip install --upgrade pip
pip3 install gcovr==4.1
pip install --upgrade cmake
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
$(dirname `realpath $0`)/../test/cmake/run.sh test all