Skip to content

Commit a747fc9

Browse files
committed
ci: add proper error handling for Kiwi installation verification
Add explicit checks with clear error messages to identify why the Kiwi C library installation is failing in CI. The script now: - Verifies headers exist at /usr/local/include/kiwi/ - Verifies libraries exist at /usr/local/lib/libkiwi* - Fails fast with descriptive error messages if verification fails - Shows success confirmation when installation works properly This will help identify whether the issue is with sudo permissions, path differences between local and CI environments, or other installation problems specific to GitHub Actions runners.
1 parent 8d9e1c5 commit a747fc9

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,23 @@ jobs:
2020
with:
2121
go-version: ${{ matrix.go-version }}
2222
- uses: actions/checkout@v4
23-
- run: make install-kiwi
24-
- run: make test
23+
- name: Install Kiwi dependencies
24+
run: |
25+
echo "Installing Kiwi C library..."
26+
make install-kiwi
27+
echo "Verifying installation..."
28+
if [ ! -d "/usr/local/include/kiwi" ]; then
29+
echo "ERROR: Kiwi headers not found at /usr/local/include/kiwi/"
30+
echo "Installation failed - headers were not properly installed"
31+
exit 1
32+
fi
33+
if ! ls /usr/local/lib/libkiwi* > /dev/null 2>&1; then
34+
echo "ERROR: Kiwi libraries not found at /usr/local/lib/libkiwi*"
35+
echo "Installation failed - libraries were not properly installed"
36+
exit 1
37+
fi
38+
echo "✓ Kiwi installation verified successfully"
39+
ls -la /usr/local/include/kiwi/
40+
ls -la /usr/local/lib/libkiwi*
41+
- name: Run tests
42+
run: make test

0 commit comments

Comments
 (0)