@@ -7,21 +7,57 @@ sudo apt-get update
77# AWS
88sudo apt-get install -y -q --no-install-recommends awscli
99
10- # PyGObject needs build dependecies https://pygobject.readthedocs.io/en/latest/getting_started.html
11- sudo apt-get install libgirepository1.0-dev libgirepository-2.0-dev gcc libcairo2-dev pkg-config python3-dev -y
10+ sudo apt-get install -y cmake build-essential
1211
13- # dbus-python build dependecies
14- sudo apt-get install libtiff5 libjpeg-dev libopenjp2-7 cmake libdbus-1-dev -y
15- sudo apt-get install -y --no-install-recommends python3-dev libdbus-glib-1-dev libgirepository1.0-dev libcairo2-dev -y
16- sudo apt-get install -y --no-install-recommends dbus-tests -y
12+
13+ # dbus-python needs build dependecies
14+ sudo apt-get install -y dbus libdbus-1-dev libdbus-glib-1-dev libdbus-1-3
15+ sudo apt-get install -y --no-install-recommends dbus-tests
16+
17+ # Pillow needs comprehensive image processing libraries
18+ sudo apt-get install -y \
19+ libjpeg-dev \
20+ libpng-dev \
21+ libtiff5-dev \
22+ zlib1g-dev \
23+ libfreetype6-dev \
24+ liblcms2-dev \
25+ libwebp-dev \
26+ libopenjp2-7-dev \
27+ libfribidi-dev \
28+ libharfbuzz-dev \
29+ libxcb1-dev
30+
31+ # Set PKG_CONFIG_PATH to include system directories for all ARM builds
32+ # Include both ARM64 and ARMv7 paths plus standard locations
33+ export PKG_CONFIG_PATH=" /usr/lib/aarch64-linux-gnu/pkgconfig:/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:${PKG_CONFIG_PATH:- } "
34+ echo " export PKG_CONFIG_PATH=\" $PKG_CONFIG_PATH \" " >> ~ /.bashrc
35+
36+ # Export to GitHub Actions environment if available
37+ if [ -n " $GITHUB_ENV " ]; then
38+ echo " PKG_CONFIG_PATH=$PKG_CONFIG_PATH " >> $GITHUB_ENV
39+ fi
1740
1841# Only ARMv7
1942if [ " $arch " == " armv7l" ]; then
43+ # pip cache permissions to avoid warnings
44+ sudo mkdir -p /github/home/.cache/pip || true
45+ sudo chown -R $USER :$USER /github/home/.cache/pip || true
46+
47+ # Additional dbus packages for ARMv7
48+ sudo apt-get install -y --reinstall dbus-1-dev dbus-1-doc libdbus-1-dev pkg-config
49+
50+ # Try to install additional dbus development packages
51+ sudo apt-get install -y libdbus-glib-1-dev || true
52+
53+ # Force update pkg-config cache
54+ sudo ldconfig
55+
2056 # cryptography needs Rust
2157 # clean the container Rust installation to be sure right interpreter is used
22- apt remove --auto-remove --purge rust-gdb rustc libstd-rust-dev libstd-rust-1.48
58+ sudo apt remove --auto-remove --purge rust-gdb rustc libstd-rust-dev libstd-rust-1.48
2359 # install Rust dependencies
24- apt-get install -y build-essential libssl-dev libffi-dev python3-dev pkg-config gcc musl-dev
60+ sudo apt-get install -y libssl-dev libffi-dev gcc musl-dev
2561 # install Rust
2662 curl --proto ' =https' --tlsv1.3 -sSf https://sh.rustup.rs | bash -s -- -y
2763 . $HOME /.cargo/env
0 commit comments