Skip to content

Commit

Permalink
add build env
Browse files Browse the repository at this point in the history
  • Loading branch information
AuTsing committed Sep 2, 2024
1 parent a1b85c9 commit bf0ef48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ jobs:
echo "$(pwd)/$basename" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Build
env:
CROSS_SYSROOT: '${{ github.workspace }}/third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot'
BINDGEN_EXTRA_CLANG_ARGS_aarch64_linux_android: '--sysroot=${{env.CROSS_SYSROOT}}'
DEP_Z_INCLUDE: '${{env.CROSS_SYSROOT}}/usr/include'
run: cargo build -vv --locked ${{ env.CARGO_VARIANT_FLAG }} --target ${{ matrix.config.target }}

- name: Prepare Release
Expand Down

0 comments on commit bf0ef48

Please sign in to comment.