Files
swupd-client/scripts/github_actions/build_ci_style.bash
T
Otavio Pontes e9739d9eb3 actions: cache dependencies for swupd
Some packages we need to build swupd are not available on ubunutu-latest
so we need to download and build from source. This process is slow and
caching can save us some significant time on build.
2020-03-27 15:34:41 -07:00

20 lines
629 B
Bash
Executable File

#!/bin/bash
# Calls build_ci to install dependencies and build swupd.
# Install dependencies needed to run compliance check, documentation check and
# bash shell check
set -e
./scripts/github_actions/build_ci.bash
# Install dependencies from ubuntu
sudo apt-get install shellcheck
sudo apt-get install doxygen
sudo pip install coverxygen
# Install new clang-format from llvm repository
wget -O llvm.gpg.key https://apt.llvm.org/llvm-snapshot.gpg.key
sudo apt-key add llvm.gpg.key
sudo add-apt-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main"
sudo apt-get update
sudo apt-get install -y clang-format-9