Skip to content

Commit

Permalink
no envvar
Browse files Browse the repository at this point in the history
  • Loading branch information
nitaliano committed Dec 3, 2024
1 parent 1fd0656 commit 7df6099
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/toml-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"typings": "./index.d.ts",
"scripts": {
"build": "napi build --release --platform",
"build:bindings": "napi build --release --platform --target $CLI_BUILD_ARCH --use-cross",
"build:bindings": "napi build --release --platform --use-cross",
"test": "cargo test",
"lint": "cargo fmt --check",
"lint:fix": "cargo fmt && cargo fmt --check",
Expand Down
7 changes: 3 additions & 4 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,23 @@ build_darwin() {
for arch in "${darwin_archs[@]}"; do
rustup target add $arch
echo "Building for macos architecture: $arch"
CLI_BUILD_ARCH=$arch pnpm nx run-many --target=build:bindings --skip-nx-cache
pnpm nx run-many --target=build:bindings --skip-nx-cache -- --target $arch
done
}

build_linux() {
for arch in "${linux_archs[@]}"; do
rustup target add $arch
echo "Building for linux architecture: $arch"
CLI_BUILD_ARCH=$arch pnpm nx run-many --target=build:bindings --skip-nx-cache
pnpm nx run-many --target=build:bindings --skip-nx-cache -- --target $arch
done
}

build_windows() {
for arch in "${windows_archs[@]}"; do
rustup target add $arch
echo "Building for windows architecture: $arch"
export CLI_BUILD_ARCH=$arch
pnpm nx run-many --target=build:bindings --skip-nx-cache
pnpm nx run-many --target=build:bindings --skip-nx-cache -- --target $arch
done
}

Expand Down

0 comments on commit 7df6099

Please sign in to comment.