-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: try windows msvc witthout linker directives
- Loading branch information
1 parent
54acc16
commit b193f6c
Showing
5 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# Determine the script's directory and the project root directory | ||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)" | ||
|
||
cd $PROJECT_ROOT/bindings/node | ||
|
||
mv $PROJECT_ROOT/.cargo/config.node.cross.toml $PROJECT_ROOT/.cargo/config.toml | ||
|
||
npm install -g @napi-rs/cli | ||
|
||
napi build --platform --release --target x86_64-unknown-linux-gnu | ||
napi build --platform --release --target aarch64-unknown-linux-gnu | ||
napi build --platform --release --target x86_64-pc-windows-msvc | ||
napi build --platform --release --target x86_64-apple-darwin | ||
napi build --platform --release --target aarch64-apple-darwin | ||
|
||
mv $PROJECT_ROOT/.cargo/config.toml $PROJECT_ROOT/.cargo/config.node.cross.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# This assumes we are on mac, for the CI we will be running this in Mac | ||
# linkers needed for cross compiling for linux and windows | ||
brew install SergioBenitez/osxct/x86_64-unknown-linux-gnu | ||
brew tap messense/homebrew-macos-cross-toolchains | ||
brew install aarch64-unknown-linux-gnu | ||
brew install mingw-w64 | ||
|
||
rustup target add x86_64-unknown-linux-gnu | ||
rustup target add aarch64-unknown-linux-gnu | ||
rustup target add x86_64-pc-windows-msvc | ||
rustup target add x86_64-apple-darwin | ||
rustup target add aarch64-apple-darwin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters