[Wasm] Use Node.js with "canary" v8 in gradle mpp tests
It's required due to switching to the latest wasm opcodes. #KT-59720
This commit is contained in:
committed by
Space Team
parent
86e854a980
commit
c915cc54c7
+9
-1
@@ -8,7 +8,9 @@ repositories {
|
||||
}
|
||||
|
||||
with(org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin.apply(rootProject)) {
|
||||
nodeVersion = "20.2.0"
|
||||
// canary nodejs that supports recent Wasm GC changes
|
||||
nodeVersion = "21.0.0-v8-canary202309167e82ab1fa2"
|
||||
nodeDownloadBaseUrl = "https://nodejs.org/download/v8-canary"
|
||||
}
|
||||
|
||||
with(org.jetbrains.kotlin.gradle.targets.js.d8.D8RootPlugin.apply(rootProject)) {
|
||||
@@ -17,6 +19,12 @@ with(org.jetbrains.kotlin.gradle.targets.js.d8.D8RootPlugin.apply(rootProject))
|
||||
version = (version as String)
|
||||
}
|
||||
|
||||
allprojects.forEach {
|
||||
it.tasks.withType<org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask>().configureEach {
|
||||
args.add("--ignore-engines")
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named<org.jetbrains.kotlin.gradle.targets.js.yarn.YarnLockCopyTask>("kotlinStoreYarnLock") {
|
||||
//A little hacky way to make yarn results
|
||||
inputFile.fileValue(projectDir.resolve("yarnLockStub"))
|
||||
|
||||
Reference in New Issue
Block a user