summaryrefslogtreecommitdiff
path: root/.github/workflows/build_test.sh
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2021-09-29 19:55:24 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2021-09-29 22:24:12 +0200
commit8370da9ea608b0f59c9da495910bbc3e45236ed6 (patch)
treef2a6fce8f564926f0446154eeb2c82de979718a8 /.github/workflows/build_test.sh
parent5386e247f8159bb8014d3dfb45bd30f3efc9dc6b (diff)
downloadsystemd-8370da9ea608b0f59c9da495910bbc3e45236ed6.tar.gz
ci: shellcheck-ify CI scripts
Diffstat (limited to '.github/workflows/build_test.sh')
-rwxr-xr-x.github/workflows/build_test.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/build_test.sh b/.github/workflows/build_test.sh
index bdcb71ba9c..57df14e2fc 100755
--- a/.github/workflows/build_test.sh
+++ b/.github/workflows/build_test.sh
@@ -75,7 +75,7 @@ if [[ "$COMPILER" == clang ]]; then
# Following snippet was borrowed from https://apt.llvm.org/llvm.sh
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
add-apt-repository -y "deb http://apt.llvm.org/$RELEASE/ llvm-toolchain-$RELEASE-$COMPILER_VERSION main"
- PACKAGES+=(clang-$COMPILER_VERSION lldb-$COMPILER_VERSION lld-$COMPILER_VERSION clangd-$COMPILER_VERSION)
+ PACKAGES+=("clang-$COMPILER_VERSION" "lldb-$COMPILER_VERSION" "lld-$COMPILER_VERSION" "clangd-$COMPILER_VERSION")
elif [[ "$COMPILER" == gcc ]]; then
CC="gcc-$COMPILER_VERSION"
CXX="g++-$COMPILER_VERSION"
@@ -83,7 +83,7 @@ elif [[ "$COMPILER" == gcc ]]; then
# Latest gcc stack deb packages provided by
# https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
add-apt-repository -y ppa:ubuntu-toolchain-r/test
- PACKAGES+=(gcc-$COMPILER_VERSION)
+ PACKAGES+=("gcc-$COMPILER_VERSION")
else
fatal "Unknown compiler: $COMPILER"
fi
@@ -108,6 +108,7 @@ for args in "${ARGS[@]}"; do
SECONDS=0
info "Checking build with $args"
+ # shellcheck disable=SC2086
if ! AR="$AR" CC="$CC" CXX="$CXX" CFLAGS="-Werror" CXXFLAGS="-Werror" meson -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true --werror $args build; then
fatal "meson failed with $args"
fi