Skip to content

Commit 8da2029

Browse files
Merge pull request #528 from ruby/katei/add-wasip2-pkg
2 parents 71c25d8 + 5b51997 commit 8da2029

File tree

24 files changed

+272
-61
lines changed

24 files changed

+272
-61
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ compile_commands.json
1515
html
1616

1717
build_manifest.json
18+
ci_matrix.json
1819

1920
vendor/bundle
2021
/pkg

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ $ rake build:download_prebuilt
2424
$ rake build:head-wasm32-unknown-wasip1-full
2525

2626
# Build npm package
27-
$ rake npm:ruby-head-wasm-wasi
27+
$ rake npm:ruby-head-wasm-wasip2:build
2828
# Test npm package
29-
$ rake npm:ruby-head-wasm-wasi:check
29+
$ rake npm:ruby-head-wasm-wasip2:check
3030
```
3131

3232
If you need to re-build Ruby, please clean `./rubies` directory, and run `rake npm:ruby-head-wasm-wasi` again.

Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ NPM_PACKAGES = [
3030
ruby_version: "head",
3131
gemfile: "packages/npm-packages/ruby-head-wasm-wasi/Gemfile",
3232
target: "wasm32-unknown-wasip1",
33+
},
34+
{
35+
name: "ruby-head-wasm-wasip2",
36+
ruby_version: "head",
37+
gemfile: "packages/npm-packages/ruby-head-wasm-wasip2/Gemfile",
38+
target: "wasm32-unknown-wasip2",
3339
enable_component_model: true,
3440
},
3541
{

builders/wasm32-unknown-wasip1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
wasm32-unknown-wasip2

package-lock.json

Lines changed: 13 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/npm-packages/ruby-head-wasm-wasi/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
[![npm version](https://badge.fury.io/js/@ruby%2Fhead-wasm-wasi.svg)](https://www.npmjs.com/package/@ruby/head-wasm-wasi)
44

5-
This package provides WebAssembly binaries of CRuby built from the latest `HEAD` source code targeting WASI-compatible environments.
5+
This package provides WebAssembly binaries of CRuby built from the latest `HEAD` source code targeting environments compatible with WASI Preview1.
66

77
See [`@ruby/wasm-wasi`](https://github.com/ruby/ruby.wasm/blob/main/packages/npm-packages/ruby-wasm-wasi/README.md) for how to use this package.

packages/npm-packages/ruby-head-wasm-wasi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"README.md"
3030
],
3131
"scripts": {
32-
"test": "RUBY_NPM_PACKAGE_ROOT=../ruby-head-wasm-wasi npm -C ../ruby-wasm-wasi run test:run:all",
32+
"test": "RUBY_NPM_PACKAGE_ROOT=../ruby-head-wasm-wasi npm -C ../ruby-wasm-wasi run test:run",
3333
"build:deps": "cd ../ruby-wasm-wasi && npm run build",
3434
"build:static:files": "../ruby-wasm-wasi/tools/pack-static-files.sh ./dist",
3535
"build:static:compat": "../ruby-wasm-wasi/tools/pack-compat-shim.mjs --dist=./dist --pkg=ruby-head-wasm-wasi",
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.tgz
2+
/tmp
3+
/bundle
4+
/vendor

0 commit comments

Comments
 (0)