Skip to content

Commit

Permalink
Merge pull request #347 from ruby/katei/release-ruby-3.3
Browse files Browse the repository at this point in the history
Ruby 3.3.0
  • Loading branch information
kateinoigakukun authored Dec 25, 2023
2 parents 3122466 + 67f5e03 commit 83d1d23
Show file tree
Hide file tree
Showing 13 changed files with 157 additions and 277 deletions.
28 changes: 12 additions & 16 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ BUILD_SOURCES = {
rev: "master",
patches: Dir["./patches/*.patch"].map { |p| File.expand_path(p) }
},
"3.3" => {
type: "tarball",
url: "https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0.tar.gz"
},
"3.2" => {
type: "tarball",
url: "https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2.tar.gz"
Expand Down Expand Up @@ -57,11 +61,6 @@ BUILD_PROFILES = {
default_exts: FULL_EXTS,
user_exts: []
},
"full-js" => {
debug: false,
default_exts: FULL_EXTS,
user_exts: %w[js witapi]
},
"full-js-debug" => {
debug: true,
default_exts: FULL_EXTS,
Expand All @@ -74,17 +73,9 @@ BUILDS =
.product(BUILD_SOURCES.keys, BUILD_PROFILES.keys)
.select do |target, _, profile_name|
if target == "wasm32-unknown-emscripten"
profile = BUILD_PROFILES[profile_name]
user_exts = profile[:user_exts]
# Skip builds with JS extensions or debug mode for Emscripten
# because JS extensions have incompatible import/export entries
# and debug mode is rarely used for Emscripten.
next(
!(
user_exts.include?("witapi") || user_exts.include?("js") ||
profile[:debug]
)
)
# Builds only full for Emscripten since minimal, js, debug
# builds are rarely used with Emscripten.
next profile_name == "full"
end
next true
end
Expand All @@ -106,6 +97,11 @@ NPM_PACKAGES = [
build: "head-wasm32-unknown-wasi-full-js-debug",
target: "wasm32-unknown-wasi"
},
{
name: "ruby-3.3-wasm-wasi",
build: "3.3-wasm32-unknown-wasi-full-js-debug",
target: "wasm32-unknown-wasi"
},
{
name: "ruby-3.2-wasm-wasi",
build: "3.2-wasm32-unknown-wasi-full-js-debug",
Expand Down
Loading

0 comments on commit 83d1d23

Please sign in to comment.