Skip to content

Commit

Permalink
fix: added missing dependecies for aarch64 linux
Browse files Browse the repository at this point in the history
  • Loading branch information
alenmestrov committed Oct 17, 2024
1 parent d74ad7f commit c488ea7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,16 @@ jobs:
if: matrix.args == '--target aarch64-unknown-linux-gnu'
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
sudo apt-get install -y \
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu \
libstdc++-11-dev-arm64-cross \
zlib1g-dev \
libsnappy-dev \
libbz2-dev \
liblz4-dev \
libzstd-dev \
clang \
libc6-dev-arm64-cross
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
echo "CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
echo "CXX_aarch64_unknown_linux_gnu=aarch64-linux-gnu-g++" >> $GITHUB_ENV
Expand Down Expand Up @@ -92,6 +101,8 @@ jobs:
if: matrix.args == '--target aarch64-unknown-linux-gnu'
uses: tauri-apps/tauri-action@v0
env:
C_INCLUDE_PATH: /usr/lib/gcc-cross/aarch64-linux-gnu/11/include
CXX_INCLUDE_PATH: /usr/lib/gcc-cross/aarch64-linux-gnu/11/include/c++
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENSSL_DIR: ${{ env.OPENSSL_DIR }}
OPENSSL_LIB_DIR: ${{ env.OPENSSL_LIB_DIR }}
Expand All @@ -100,6 +111,7 @@ jobs:
PKG_CONFIG_ALLOW_CROSS: ${{ env.PKG_CONFIG_ALLOW_CROSS }}
PKG_CONFIG_SYSROOT_DIR: ${{ env.PKG_CONFIG_SYSROOT_DIR }}
OPENSSL_STATIC: ${{ env.OPENSSL_STATIC }}
RUSTFLAGS: "-C link-arg=-lstdc++ -C link-arg=-lpthread -C link-arg=-lc"
with:
tagName: app-v__VERSION__
releaseName: 'App v__VERSION__'
Expand Down

0 comments on commit c488ea7

Please sign in to comment.