From a215ef955ab5c2d3aff6df1403e128f53601664d Mon Sep 17 00:00:00 2001 From: Abdenasser Date: Thu, 7 Nov 2024 18:06:01 +0100 Subject: [PATCH] fixing aarch64 workflow --- .github/workflows/linux-aarch64-nightly.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux-aarch64-nightly.yml b/.github/workflows/linux-aarch64-nightly.yml index 7fae920..5e9d175 100644 --- a/.github/workflows/linux-aarch64-nightly.yml +++ b/.github/workflows/linux-aarch64-nightly.yml @@ -67,11 +67,18 @@ jobs: - name: Install Dependencies run: npm install - - name: Configure pkg-config for Cross-Compilation + - name: Setup pkg-config for ARM64 run: | - sudo apt-get install -y pkg-config-aarch64-linux-gnu + sudo apt-get install -y crossbuild-essential-arm64 pkg-config + # Create the pkg-config wrapper for aarch64 + sudo tee /usr/bin/aarch64-linux-gnu-pkg-config << 'EOF' + #!/bin/sh + export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig + exec pkg-config "$@" + EOF + sudo chmod +x /usr/bin/aarch64-linux-gnu-pkg-config echo "PKG_CONFIG=/usr/bin/aarch64-linux-gnu-pkg-config" >> $GITHUB_ENV - echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV + echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV - name: Build Frontend run: npm run build