diff --git a/.github/workflows/linux-aarch64-nightly.yml b/.github/workflows/linux-aarch64-nightly.yml index b3af010..4d1bbb4 100644 --- a/.github/workflows/linux-aarch64-nightly.yml +++ b/.github/workflows/linux-aarch64-nightly.yml @@ -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