-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e76e393
commit 4b7d17a
Showing
36 changed files
with
500 additions
and
306 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
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/target | ||
target | ||
node_modules | ||
/tmp |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,11 @@ | ||
[target.x86_64-apple-darwin] | ||
image = "ghcr.io/cross-rs/x86_64-apple-darwin-cross:local" | ||
|
||
[target.aarch64-apple-darwin] | ||
image = "ghcr.io/cross-rs/aarch64-apple-darwin-cross:local" | ||
|
||
[target.aarch64-pc-windows-msvc] | ||
image = "ghcr.io/cross-rs/aarch64-pc-windows-msvc-cross:local" | ||
|
||
[target.x86_64-pc-windows-msvc] | ||
image = "ghcr.io/cross-rs/x86_64-pc-windows-msvc-cross:local" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
npm/*/bin/* | ||
!npm/*/bin/.gitkeep |
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 |
---|---|---|
@@ -1,5 +1,59 @@ | ||
install: | ||
cargo install cross | ||
|
||
test: | ||
cargo test | ||
|
||
test-watch: | ||
cargo watch -x test | ||
cargo watch -x test | ||
|
||
build: | ||
# aarch64-apple-darwin | ||
cross build --release --target aarch64-apple-darwin --target-dir target | ||
cp target/aarch64-apple-darwin/release/gts npm/darwin-arm64/bin/ | ||
chmod +x npm/darwin-arm64/bin/gts | ||
# x86_64-apple-darwin | ||
cross build --release --target x86_64-apple-darwin --target-dir target | ||
cp target/x86_64-apple-darwin/release/gts npm/darwin-x64/bin/ | ||
chmod +x npm/darwin-x64/bin/gts | ||
# aarch64-unknown-linux-gnu | ||
cross build --release --target aarch64-unknown-linux-gnu --target-dir target | ||
cp target/aarch64-unknown-linux-gnu/release/gts npm/linux-arm64/bin/ | ||
chmod +x npm/linux-arm64/bin/gts | ||
# x86_64-unknown-linux-gnu | ||
cross build --release --target x86_64-unknown-linux-gnu --target-dir target | ||
cp target/aarch64-unknown-linux-gnu/release/gts npm/linux-x64/bin/ | ||
chmod +x npm/linux-x64/bin/gts | ||
# aarch64-pc-windows-msvc | ||
cross build --release --target aarch64-pc-windows-msvc --target-dir target | ||
cp target/aarch64-pc-windows-msvc/release/gts.exe npm/win32-x64/bin/ | ||
# x86_64-pc-windows-msvc | ||
cross build --release --target x86_64-pc-windows-msvc --target-dir target | ||
cp target/x86_64-pc-windows-msvc/release/gts.exe npm/win32-arm64/bin/ | ||
|
||
version version: | ||
npm version {{version}} | ||
cd npm/darwin-arm64 && npm version {{version}} | ||
cd npm/darwin-x64 && npm version {{version}} | ||
cd npm/linux-arm64 && npm version {{version}} | ||
cd npm/linux-x64 && npm version {{version}} | ||
cd npm/win32-x64 && npm version {{version}} | ||
cd npm/win32-arm64 && npm version {{version}} | ||
|
||
publish: build | ||
cd npm/darwin-arm64 && npm publish --access public | ||
cd npm/darwin-x64 && npm publish --access public | ||
cd npm/linux-arm64 && npm publish --access public | ||
cd npm/linux-x64 && npm publish --access public | ||
cd npm/win32-x64 && npm publish --access public | ||
cd npm/win32-arm64 && npm publish --access public | ||
npm publish | ||
|
||
publish-next: build | ||
cd npm/darwin-arm64 && pnpm publish --tag next --access public | ||
cd npm/darwin-x64 && pnpm publish --tag next --access public | ||
cd npm/linux-arm64 && pnpm publish --tag next --access public | ||
cd npm/linux-x64 && pnpm publish --tag next --access public | ||
cd npm/win32-x64 && pnpm publish --tag next --access public | ||
cd npm/win32-arm64 && pnpm publish --tag next --access public | ||
npm publish --tag next |
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,3 @@ | ||
# `@genotype-lsp/darwin-arm64` | ||
|
||
This is the **aarch64-apple-darwin** binary for `genotype-lsp` |
Empty file.
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,18 @@ | ||
{ | ||
"name": "@genotype-lsp/darwin-arm64", | ||
"version": "0.6.0-alpha.1", | ||
"os": [ | ||
"darwin" | ||
], | ||
"cpu": [ | ||
"arm64" | ||
], | ||
"files": [ | ||
"bin/gts", | ||
"README.md" | ||
], | ||
"license": "MIT", | ||
"scripts": { | ||
"prepublish": "node -e \"require('fs').lstatSync('bin/gts')\"" | ||
} | ||
} |
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,3 @@ | ||
# `@genotype-lsp/darwin-x64` | ||
|
||
This is the **x86_64-apple-darwin** binary for `genotype-lsp` |
Empty file.
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,18 @@ | ||
{ | ||
"name": "@genotype-lsp/darwin-x64", | ||
"version": "0.6.0-alpha.1", | ||
"os": [ | ||
"darwin" | ||
], | ||
"cpu": [ | ||
"x64" | ||
], | ||
"files": [ | ||
"bin/gts", | ||
"README.md" | ||
], | ||
"license": "MIT", | ||
"scripts": { | ||
"prepublish": "node -e \"require('fs').lstatSync('bin/gts')\"" | ||
} | ||
} |
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,3 @@ | ||
# `@genotype-lsp/linux-arm64` | ||
|
||
This is the **aarch64-unknown-linux-gnu** binary for `genotype-lsp` |
Empty file.
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,18 @@ | ||
{ | ||
"name": "@genotype-lsp/linux-arm64", | ||
"version": "0.6.0-alpha.1", | ||
"os": [ | ||
"linux" | ||
], | ||
"cpu": [ | ||
"arm64" | ||
], | ||
"files": [ | ||
"bin/gts", | ||
"README.md" | ||
], | ||
"license": "MIT", | ||
"scripts": { | ||
"prepublish": "node -e \"require('fs').lstatSync('bin/gts')\"" | ||
} | ||
} |
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,3 @@ | ||
# `@genotype-lsp/linux-x64` | ||
|
||
This is the **x86_64-unknown-linux-gnu** binary for `genotype-lsp` |
Empty file.
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,18 @@ | ||
{ | ||
"name": "@genotype-lsp/linux-x64", | ||
"version": "0.6.0-alpha.1", | ||
"os": [ | ||
"linux" | ||
], | ||
"cpu": [ | ||
"x64" | ||
], | ||
"files": [ | ||
"bin/gts", | ||
"README.md" | ||
], | ||
"license": "MIT", | ||
"scripts": { | ||
"prepublish": "node -e \"require('fs').lstatSync('bin/gts')\"" | ||
} | ||
} |
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,3 @@ | ||
# `@genotype-lsp/win32-msvc-arm64` | ||
|
||
This is the **aarch64-pc-windows-msvc** binary for `genotype-lsp` |
Empty file.
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,18 @@ | ||
{ | ||
"name": "@genotype-lsp/win32-arm64", | ||
"version": "0.6.0-alpha.1", | ||
"os": [ | ||
"win32" | ||
], | ||
"cpu": [ | ||
"arm64" | ||
], | ||
"files": [ | ||
"bin/gts.exe", | ||
"README.md" | ||
], | ||
"license": "MIT", | ||
"scripts": { | ||
"prepublish": "node -e \"require('fs').lstatSync('bin/gts.exe')\"" | ||
} | ||
} |
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,3 @@ | ||
# `@genotype-lsp/win32-x64` | ||
|
||
This is the **x86_64-pc-windows-msvc** binary for `genotype-lsp` |
Empty file.
Oops, something went wrong.