Skip to content

Commit

Permalink
Support linux-riscv64 (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Aug 6, 2024
1 parent 3b4c45c commit 9b04eeb
Show file tree
Hide file tree
Showing 8 changed files with 75 additions and 1 deletion.
3 changes: 3 additions & 0 deletions npm/android-riscv64/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `sass-embedded-android-riscv64`

This is the **android-riscv64** binary for [`sass-embedded`](https://www.npmjs.com/package/sass-embedded)
20 changes: 20 additions & 0 deletions npm/android-riscv64/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "sass-embedded-android-riscv64",
"version": "1.77.8",
"description": "The android-riscv64 binary for sass-embedded",
"repository": "sass/embedded-host-node",
"author": "Google Inc.",
"license": "MIT",
"files": [
"dart-sass/**/*"
],
"engines": {
"node": ">=14.0.0"
},
"os": [
"android"
],
"cpu": [
"riscv64"
]
}
3 changes: 3 additions & 0 deletions npm/linux-musl-riscv64/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `sass-embedded-linux-musl-riscv64`

This is the **linux-musl-riscv64** binary for [`sass-embedded`](https://www.npmjs.com/package/sass-embedded)
20 changes: 20 additions & 0 deletions npm/linux-musl-riscv64/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "sass-embedded-linux-musl-riscv64",
"version": "1.77.8",
"description": "The linux-musl-riscv64 binary for sass-embedded",
"repository": "sass/embedded-host-node",
"author": "Google Inc.",
"license": "MIT",
"files": [
"dart-sass/**/*"
],
"engines": {
"node": ">=14.0.0"
},
"os": [
"linux"
],
"cpu": [
"riscv64"
]
}
3 changes: 3 additions & 0 deletions npm/linux-riscv64/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `sass-embedded-linux-riscv64`

This is the **linux-riscv64** binary for [`sass-embedded`](https://www.npmjs.com/package/sass-embedded)
20 changes: 20 additions & 0 deletions npm/linux-riscv64/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "sass-embedded-linux-riscv64",
"version": "1.77.8",
"description": "The linux-riscv64 binary for sass-embedded",
"repository": "sass/embedded-host-node",
"author": "Google Inc.",
"license": "MIT",
"files": [
"dart-sass/**/*"
],
"engines": {
"node": ">=14.0.0"
},
"os": [
"linux"
],
"cpu": [
"riscv64"
]
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,19 @@
"sass-embedded-android-arm": "1.77.8",
"sass-embedded-android-arm64": "1.77.8",
"sass-embedded-android-ia32": "1.77.8",
"sass-embedded-android-riscv64": "1.77.8",
"sass-embedded-android-x64": "1.77.8",
"sass-embedded-darwin-arm64": "1.77.8",
"sass-embedded-darwin-x64": "1.77.8",
"sass-embedded-linux-arm": "1.77.8",
"sass-embedded-linux-arm64": "1.77.8",
"sass-embedded-linux-ia32": "1.77.8",
"sass-embedded-linux-riscv64": "1.77.8",
"sass-embedded-linux-x64": "1.77.8",
"sass-embedded-linux-musl-arm": "1.77.8",
"sass-embedded-linux-musl-arm64": "1.77.8",
"sass-embedded-linux-musl-ia32": "1.77.8",
"sass-embedded-linux-musl-riscv64": "1.77.8",
"sass-embedded-linux-musl-x64": "1.77.8",
"sass-embedded-win32-arm64": "1.77.8",
"sass-embedded-win32-ia32": "1.77.8",
Expand Down
4 changes: 3 additions & 1 deletion tool/prepare-optional-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type DartPlatform =
| 'linux-musl'
| 'macos'
| 'windows';
export type DartArch = 'ia32' | 'x64' | 'arm' | 'arm64';
export type DartArch = 'ia32' | 'x64' | 'arm' | 'arm64' | 'riscv64';

const argv = yargs(process.argv.slice(2))
.option('package', {
Expand Down Expand Up @@ -61,6 +61,8 @@ export function nodeArchToDartArch(arch: string): DartArch {
return 'arm';
case 'arm64':
return 'arm64';
case 'riscv64':
return 'riscv64';
default:
throw Error(`Architecture ${arch} is not supported.`);
}
Expand Down

0 comments on commit 9b04eeb

Please sign in to comment.