Trying to fix build on CI

This commit is contained in:
Alexey Andreev 2024-10-11 18:09:27 +02:00
parent cb3ce477e2
commit 069caf63cf
2 changed files with 7 additions and 2 deletions

View File

@ -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
./gradlew check -x test

View File

@ -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 {