Skip to content

Commit 7b12e89

Browse files
committed
#1: fix command in CI
1 parent 25216f9 commit 7b12e89

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

.github/workflows/build-and-test.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -150,23 +150,18 @@ jobs:
150150
fi
151151
CMD='
152152
cd '${WORKSPACE}'; \
153-
echo "Get lcov..."
154-
. ~/.setuprc
155-
if [ "$OS_NAME" = "Ubuntu" ]
156-
then
157-
apt-get update -y -q
158-
apt-get install -y -q --no-install-recommends ca-certificates wget git
159-
elif [ "$OS_NAME" = "Alpine Linux" ]
160-
then
161-
apk update
162-
apk add --no-cache wget git bash
163-
elif [ "$OS_NAME" = "macOS" ]
164-
then
165-
brew update
166-
else
167-
echo "Error. Please implement the pre-setup instructions for OS=$OS_NAME"
168-
exit 1
169-
fi
153+
echo "Get lcov..." \
154+
. ~/.setuprc \
155+
if [ "$OS_NAME" = "Ubuntu" ]; \
156+
then \
157+
apt-get update -y -q; \
158+
elif [ "$OS_NAME" = "Alpine Linux" ]; \
159+
then \
160+
apk update; \
161+
elif [ "$OS_NAME" = "macOS" ]; \
162+
then \
163+
brew update; \
164+
fi \
170165
wget https://raw.githubusercontent.com/${{ env.CI_REPO }}/refs/heads/${{ env.CI_BRANCH }}/ci/shared/scripts/deps/packages.sh && chmod +x packages.sh
171166
./packages.sh lcov
172167
echo "lcov installed successfully !"

0 commit comments

Comments
 (0)