Skip to content

Commit 3c54d4d

Browse files
committed
More debug prints
1 parent 3e50a61 commit 3c54d4d

1 file changed

Lines changed: 19 additions & 8 deletions

File tree

.github/actions/deps/ports/zephyr-cp/action.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,29 @@ runs:
66
- name: Get Linux build dependencies
77
if: runner.os == 'Linux'
88
run: |
9+
echo "--- apt-get version ---"
10+
apt-get --version
11+
echo "--- runner image info ---"
12+
cat /etc/os-release
13+
echo "--- installed python3 packages ---"
14+
dpkg -l 'python3*' 2>/dev/null | grep '^ii' || true
15+
echo "--- python3 and python3-packaging status ---"
16+
dpkg -s python3 python3-minimal python3-packaging 2>&1 || true
917
sudo dpkg --add-architecture i386
1018
sudo apt-get update
19+
echo "--- source list ---"
20+
grep -r ^ /etc/apt/sources.list /etc/apt/sources.list.d/ 2>/dev/null || true
21+
echo "--- package repository versions ---"
22+
apt-cache policy
1123
sudo apt-get install -y libusb-1.0-0-dev libudev-dev pkg-config mtools
24+
echo "--- apt-cache policy for key packages ---"
25+
apt-cache policy libsdl2-dev:i386 libsdl2-image-dev:i386 libglib2.0-dev:i386 libglib2.0-dev-bin python3:amd64 python3:i386 python3-packaging
26+
echo "--- dpkg architecture list ---"
27+
dpkg --print-foreign-architectures
28+
echo "--- dry-run install to see what would change ---"
29+
sudo apt-get install -y --dry-run libsdl2-dev:i386 libsdl2-image-dev:i386 2>&1 || true
1230
echo "::group::Install SDL2 i386 packages"
13-
sudo apt-get install -y -o Debug::pkgProblemResolver=yes -o Debug::pkgDepCache::AutoInstall=yes libsdl2-dev:i386 libsdl2-image-dev:i386 || {
14-
echo "::error::Failed to install SDL2 i386 packages"
15-
echo "--- apt-cache policy ---"
16-
apt-cache policy libsdl2-dev:i386 libsdl2-image-dev:i386
17-
echo "--- dpkg architecture list ---"
18-
dpkg --print-foreign-architectures
19-
exit 1
20-
}
31+
sudo apt-get install -y -o Debug::pkgProblemResolver=yes -o Debug::pkgDepCache::AutoInstall=yes libsdl2-dev:i386 libsdl2-image-dev:i386
2132
echo "::endgroup::"
2233
echo "PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" >> $GITHUB_ENV
2334
shell: bash

0 commit comments

Comments
 (0)