Skip to content

Commit

Permalink
does it work now
Browse files Browse the repository at this point in the history
  • Loading branch information
sxlijin committed Oct 11, 2024
1 parent f5721cf commit 997179c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/build-typescript-release.reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,21 @@ jobs:
tar -xzf x86_64-linux-musl-cross.tgz
echo "$PWD/x86_64-linux-musl-cross/bin" >> $GITHUB_PATH
cat >>$GITHUB_ENV <<EOF
CC_x86_64_unknown_linux_musl=x86_64-linux-musl-gcc
CXX_x86_64_unknown_linux_musl=x86_64-linux-musl-g++
AR_x86_64_unknown_linux_musl=x86_64-linux-musl-ar
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=x86_64-linux-musl-cc
EOF
node_build: pnpm build:napi-release --target x86_64-unknown-linux-musl --use-napi-cross

# - target: aarch64-unknown-linux-musl
# host: ubuntu-latest
# before: |
# curl -LO https://musl.cc/aarch64-linux-musl-cross.tgz
# tar -xzf aarch64-linux-musl-cross.tgz
# echo "$PWD/aarch64-linux-musl-cross/bin" >> $GITHUB_PATH
# node_build: pnpm build:napi-release --target aarch64-unknown-linux-musl --use-napi-cross
# cat >>$GITHUB_ENV <<EOF
# CC_x86_64_unknown_linux_musl=x86_64-linux-musl-gcc
# CXX_x86_64_unknown_linux_musl=x86_64-linux-musl-g++
# AR_x86_64_unknown_linux_musl=x86_64-linux-musl-ar
# CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=x86_64-linux-musl-cc
# EOF
node_build: env && pnpm build:napi-release --target x86_64-unknown-linux-musl --use-napi-cross

- target: aarch64-unknown-linux-musl
host: ubuntu-latest
before: |
curl -LO https://musl.cc/aarch64-linux-musl-cross.tgz
tar -xzf aarch64-linux-musl-cross.tgz
echo "$PWD/aarch64-linux-musl-cross/bin" >> $GITHUB_PATH
node_build: pnpm build:napi-release --target aarch64-unknown-linux-musl --use-napi-cross

name: Build ${{ matrix._.target }}
runs-on: ${{ matrix._.host }}
Expand Down
6 changes: 6 additions & 0 deletions engine/language_client_typescript/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ version = "0.0.1"
name = "baml"
crate-type = ["cdylib"]

[target.x86_64-unknown-linux-musl]
linker = "x86_64-linux-musl-gcc"

[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-musl-gcc"

[dependencies]
anyhow.workspace = true
baml-types = { path = "../baml-lib/baml-types" }
Expand Down

0 comments on commit 997179c

Please sign in to comment.