Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: linux-musl build failed #8743

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ jobs:
target: ${{ inputs.target }}
image: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
profile: ${{ inputs.profile }}
pre: export CC_aarch64_unknown_linux_gnu=clang
pre: |
export CC_aarch64_unknown_linux_gnu=clang

- name: Build x86_64-unknown-linux-musl in Docker
if: ${{ inputs.target == 'x86_64-unknown-linux-musl' && steps.check_cache.outputs.files_exists != 'true' && !inputs.skipable }}
Expand All @@ -157,6 +158,12 @@ jobs:
target: ${{ inputs.target }}
image: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
profile: ${{ inputs.profile }}
pre: |
# musl will enable clang-sys static linking
# https://github.com/KyleMayes/clang-sys?tab=readme-ov-file#static
# llvm19-dev is used to install llvm-config
# clang19-static is used to install libclang.a
apk add llvm19-dev clang19-static
jerrykingxyz marked this conversation as resolved.
Show resolved Hide resolved

- name: Build aarch64-unknown-linux-musl in Docker
if: ${{ inputs.target == 'aarch64-unknown-linux-musl' && steps.check_cache.outputs.files_exists != 'true' && !inputs.skipable }}
Expand All @@ -167,6 +174,11 @@ jobs:
profile: ${{ inputs.profile }}
pre: |
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-musl-gcc
# musl will enable clang-sys static linking
# https://github.com/KyleMayes/clang-sys?tab=readme-ov-file#static
# llvm19-dev is used to install llvm-config
# clang19-static is used to install libclang.a
apk add llvm19-dev clang19-static

# setup rust target for windows and macos
- name: Setup Rust Target
Expand Down
Loading