fixing aarch64 workflow

This commit is contained in:
Abdenasser 2024-11-07 17:50:44 +01:00
parent cb93649195
commit 34224a12db

View File

@ -30,10 +30,19 @@ jobs:
with:
targets: aarch64-unknown-linux-gnu
- name: Install Linux Dependencies
- name: Configure ARM64 build environment
run: |
sudo dpkg --add-architecture arm64
# Remove existing sources to prevent 404 errors
sudo rm -f /etc/apt/sources.list.d/*.list
# Add ARM64 repositories from ports.ubuntu.com
sudo tee /etc/apt/sources.list.d/arm64.list << EOF
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted universe multiverse
EOF
sudo apt-get update
# Install required packages including cross-compilation tools
sudo apt-get install -y \
build-essential \
pkg-config \
@ -47,10 +56,7 @@ jobs:
libjavascriptcoregtk-4.0-dev:arm64 \
libsoup-3.0-dev:arm64 \
libwebkit2gtk-4.1-dev:arm64
- name: Configure Cross-Compilation
run: |
echo "PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig" >> $GITHUB_ENV
# Configure pkg-config for cross-compilation
echo "PKG_CONFIG=/usr/bin/aarch64-linux-gnu-pkg-config" >> $GITHUB_ENV
echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV