From 9193a2631b974255550e98267c208493a16bc1a9 Mon Sep 17 00:00:00 2001 From: ktechmidas Date: Fri, 11 Oct 2024 13:11:19 +0300 Subject: [PATCH] use diff method --- .github/workflows/release.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 25fb249..8dd4eda 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -63,17 +63,24 @@ jobs: - name: Set environment variables for cross-compilation if: matrix.arch == 'arm64' && matrix.os == 'ubuntu-latest' run: | - export CC=aarch64-linux-gnu-gcc - export CXX=aarch64-linux-gnu-g++ + echo "CC=aarch64-linux-gnu-gcc" >> $GITHUB_ENV + echo "CXX=aarch64-linux-gnu-g++" >> $GITHUB_ENV + echo "AR=aarch64-linux-gnu-ar" >> $GITHUB_ENV + echo "PKG_CONFIG_PATH=/usr/aarch64-linux-gnu/lib/pkgconfig:/usr/lib/aarch64-linux-gnu/pkgconfig" >> $GITHUB_ENV + echo "PKG_CONFIG_SYSROOT_DIR=/usr/aarch64-linux-gnu" >> $GITHUB_ENV - - name: Install pkg-config for ARM64 + - name: Install ARM64 development libraries (example: zlib) if: matrix.arch == 'arm64' && matrix.os == 'ubuntu-latest' - run: sudo apt-get update && sudo apt-get install -y pkg-config-aarch64-linux-gnu + run: sudo apt-get install -y libz-dev:aarch64 - - name: Set pkg-config environment variable for cross-compilation - if: matrix.arch == 'arm64' && matrix.os == 'ubuntu-latest' + - name: Debug environment variables run: | - echo "PKG_CONFIG=aarch64-linux-gnu-pkg-config" >> $GITHUB_ENV + echo "CC is set to: $CC" + echo "CXX is set to: $CXX" + echo "PKG_CONFIG is set to: $PKG_CONFIG" + echo "PKG_CONFIG_PATH is set to: $PKG_CONFIG_PATH" + which $CC + - name: Check out code uses: actions/checkout@v4