From 069caf63cf03e31171d5a36e4ae90b10f9aa4b61 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Fri, 11 Oct 2024 18:09:27 +0200 Subject: [PATCH] Trying to fix build on CI --- .github/workflows/ci.yml | 4 +++- core/build.gradle.kts | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5be52289e..81f3a82a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,7 @@ jobs: with: java-version: 11 distribution: adopt + - uses: actions/setup-node@v4 - uses: gradle/gradle-build-action@v2 - if: ${{ matrix.platform == 'wasi' }} uses: bytecodealliance/actions/wasmtime/setup@v1 @@ -38,6 +39,7 @@ jobs: args+=("-Pteavm.tests.${v}=false") fi done + args+=("-Pteavm.localNodeJS=true") echo "${args[@]}" ./gradlew "${args[@]}" test - uses: actions/upload-artifact@v3 @@ -56,4 +58,4 @@ jobs: distribution: adopt - uses: gradle/gradle-build-action@v2 - run: | - ./gradlew build -x test \ No newline at end of file + ./gradlew check -x test \ No newline at end of file diff --git a/core/build.gradle.kts b/core/build.gradle.kts index 1e783a3b1..e89a83ef0 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -25,7 +25,10 @@ plugins { description = "Compiler, backends and runtime" node { - download = true + download = providers.gradleProperty("teavm.localNodeJS") + .map { it == "true" } + .map { !it } + .orElse(true) } dependencies {