Skip to content

Commit 25216f9

Browse files
committed
#1: try fix lcov installation in ci
1 parent bb7af6d commit 25216f9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,26 @@ 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
153170
wget https://raw.githubusercontent.com/${{ env.CI_REPO }}/refs/heads/${{ env.CI_BRANCH }}/ci/shared/scripts/deps/packages.sh && chmod +x packages.sh
154171
./packages.sh lcov
172+
echo "lcov installed successfully !"
155173
ls -l;
156174
chmod +x ./build.sh; \
157175
\

0 commit comments

Comments
 (0)