Skip to content

Commit

Permalink
FIX arm64 corss build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
karminski committed Oct 4, 2024
1 parent d4a8cea commit b4ac3b9
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,18 @@ jobs:
target: ${{ matrix.target }}
override: true

- name: Install cross-compilation tools for aarch64
- name: Set up for aarch64 cross-compilation
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: |
sudo dpkg --add-architecture arm64
sudo tee /etc/apt/sources.list.d/arm64.list > /dev/null <<EOT
deb [arch=arm64] http://ports.ubuntu.com/ $(lsb_release -cs) main restricted
deb [arch=arm64] http://ports.ubuntu.com/ $(lsb_release -cs)-updates main restricted
deb [arch=arm64] http://ports.ubuntu.com/ $(lsb_release -cs) universe
deb [arch=arm64] http://ports.ubuntu.com/ $(lsb_release -cs)-updates universe
EOT
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu
sudo apt-get install -y libssl-dev:arm64
- name: Set up SSL for aarch64
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: |
sudo apt-get install -y crossbuild-essential-arm64 libssl-dev:arm64
echo "OPENSSL_DIR=/usr/aarch64-linux-gnu" >> $GITHUB_ENV
echo "OPENSSL_INCLUDE_DIR=/usr/include/aarch64-linux-gnu" >> $GITHUB_ENV
echo "OPENSSL_LIB_DIR=/usr/lib/aarch64-linux-gnu" >> $GITHUB_ENV
Expand Down

0 comments on commit b4ac3b9

Please sign in to comment.