Skip to content

Commit d772f27

Browse files
committed
Try another fix and restrict to zephyr only
1 parent 666beca commit d772f27

2 files changed

Lines changed: 8 additions & 13 deletions

File tree

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

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,11 @@ runs:
2626
echo "--- package repository versions ---"
2727
apt-cache policy
2828
sudo apt-get install -y libusb-1.0-0-dev libudev-dev pkg-config mtools
29-
# Pre-install libglib2.0-dev-bin as amd64 to prevent apt from trying
30-
# to pull in python3:i386 (which conflicts with python3:amd64) when
31-
# resolving libsdl2-dev:i386 -> libibus-1.0-dev:i386 -> libglib2.0-dev:i386.
32-
sudo apt-get install -y libglib2.0-dev-bin
33-
echo "--- apt-cache policy for key packages ---"
34-
apt-cache policy libsdl2-dev:i386 libsdl2-image-dev:i386 libglib2.0-dev:i386 libglib2.0-dev-bin python3:amd64 python3:i386 python3-packaging
35-
echo "--- dpkg architecture list ---"
36-
dpkg --print-foreign-architectures
37-
echo "--- dry-run install to see what would change ---"
38-
sudo apt-get install -y --dry-run libsdl2-dev:i386 libsdl2-image-dev:i386 2>&1 || true
39-
echo "::group::Install SDL2 i386 packages"
40-
sudo apt-get install -y -o Debug::pkgProblemResolver=yes -o Debug::pkgDepCache::AutoInstall=yes libsdl2-dev:i386 libsdl2-image-dev:i386
41-
echo "::endgroup::"
29+
# Remove system python3 to avoid conflict with python3:i386 which is
30+
# pulled in by libsdl2-dev:i386 -> libibus-1.0-dev:i386 -> libglib2.0-dev:i386.
31+
# We use the actions/setup-python version from /opt/hostedtoolcache instead.
32+
sudo apt-get remove -y python3 python3-minimal || true
33+
sudo apt-get install -y libsdl2-dev:i386 libsdl2-image-dev:i386
4234
echo "PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" >> $GITHUB_ENV
4335
shell: bash
4436
- name: Setup Zephyr project

tools/ci_set_matrix.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ def get_settings(board):
243243

244244
print("Building boards:", bool(boards_to_build))
245245

246+
# Filter to only zephyr-cp boards for debugging
247+
boards_to_build = {b for b in boards_to_build if board_to_port.get(b) == "zephyr-cp"}
248+
246249
# Split boards by port
247250
port_to_boards_to_build = {}
248251

0 commit comments

Comments
 (0)