Skip to content

Commit

Permalink
use diff method
Browse files Browse the repository at this point in the history
  • Loading branch information
ktechmidas committed Oct 11, 2024
1 parent b9e0eae commit 9193a26
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9193a26

Please sign in to comment.