Skip to content

Commit

Permalink
GitHub Actions: Don't download nodejs from Kotlin/JS.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhdunn committed Mar 17, 2023
1 parent 91ac222 commit 6cba400
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-js-ir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
gradle-version: 7.5

- name: Build for Kotlin/JS IR
run: gradle jsIrJar
run: gradle -D nodejs.download=false jsIrJar

- name: Tar Build Artifacts
run: tar -cvf build-js-ir-artifacts.tar .
Expand All @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 14, 16, 18 ]
node: [ 16, 18 ]
steps:
- name: Setup Gradle 7.5
uses: gradle/gradle-build-action@v2
Expand All @@ -51,7 +51,7 @@ jobs:
node-version: ${{ matrix.node }}

- name: Test for Kotlin/JS IR on Node
run: gradle jsIrNodeTest
run: gradle -D nodejs.download=false jsIrNodeTest

test-firefox:
needs: build
Expand All @@ -76,7 +76,7 @@ jobs:
firefox-version: 'latest'

- name: Test for Kotlin/JS IR on Firefox
run: gradle -D js.browser=Firefox jsIrBrowserTest
run: gradle -D nodejs.download=false -D js.browser=Firefox jsIrBrowserTest

test-chrome:
needs: build
Expand All @@ -101,4 +101,4 @@ jobs:
chrome-version: 'latest'

- name: Test for Kotlin/JS Legacy on Chrome
run: gradle -D js.browser=Chrome jsLegacyBrowserTest
run: gradle -D nodejs.download=false -D js.browser=Chrome jsLegacyBrowserTest
10 changes: 5 additions & 5 deletions .github/workflows/build-js-legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
gradle-version: 7.5

- name: Build for Kotlin/JS Legacy
run: gradle jsLegacyJar
run: gradle -D nodejs.download=false jsLegacyJar

- name: Tar Build Artifacts
run: tar -cvf build-js-legacy-artifacts.tar .
Expand All @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 14, 16, 18 ]
node: [ 16, 18 ]
steps:
- name: Setup Gradle 7.5
uses: gradle/gradle-build-action@v2
Expand All @@ -51,7 +51,7 @@ jobs:
node-version: ${{ matrix.node }}

- name: Test for Kotlin/JS Legacy on Node
run: gradle jsLegacyNodeTest
run: gradle -D nodejs.download=false jsLegacyNodeTest

test-firefox:
needs: build
Expand All @@ -76,7 +76,7 @@ jobs:
firefox-version: 'latest'

- name: Test for Kotlin/JS Legacy on Firefox
run: gradle -D js.browser=Firefox jsLegacyBrowserTest
run: gradle -D nodejs.download=false -D js.browser=Firefox jsLegacyBrowserTest

test-chrome:
needs: build
Expand All @@ -101,4 +101,4 @@ jobs:
chrome-version: 'latest'

- name: Test for Kotlin/JS Legacy on Chrome
run: gradle -D js.browser=Chrome jsLegacyBrowserTest
run: gradle -D nodejs.download=false -D js.browser=Chrome jsLegacyBrowserTest
5 changes: 5 additions & 0 deletions src/xqt-kotlinx-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ plugins {
kotlin("multiplatform") version "1.7.20"
}

rootProject.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin> {
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().download =
System.getProperty("nodejs.download") != "false"
}

kotlin {
jvm {
compilations.all {
Expand Down
5 changes: 5 additions & 0 deletions src/xqt-platform-ft/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ plugins {
group = "xqt-platform"
version = "0.1-SNAPSHOT"

rootProject.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin> {
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().download =
System.getProperty("nodejs.download") != "false"
}

kotlin {
jvm {
compilations.all {
Expand Down
5 changes: 5 additions & 0 deletions src/xqt-platform-marklogic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ plugins {
group = "xqt-platform"
version = "0.1-SNAPSHOT"

rootProject.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin> {
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().download =
System.getProperty("nodejs.download") != "false"
}

kotlin {
jvm {
compilations.all {
Expand Down
5 changes: 5 additions & 0 deletions src/xqt-platform-saxon/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ plugins {
group = "xqt-platform"
version = "0.1-SNAPSHOT"

rootProject.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin> {
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().download =
System.getProperty("nodejs.download") != "false"
}

kotlin {
jvm {
compilations.all {
Expand Down
5 changes: 5 additions & 0 deletions src/xqt-platform-xml/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ plugins {
group = "xqt-platform"
version = "0.1-SNAPSHOT"

rootProject.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin> {
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().download =
System.getProperty("nodejs.download") != "false"
}

kotlin {
jvm {
compilations.all {
Expand Down
5 changes: 5 additions & 0 deletions src/xqt-platform-xpath/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ plugins {
group = "xqt-platform"
version = "0.1-SNAPSHOT"

rootProject.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin> {
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().download =
System.getProperty("nodejs.download") != "false"
}

kotlin {
jvm {
compilations.all {
Expand Down
5 changes: 5 additions & 0 deletions src/xqt-platform-xslt/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ plugins {
group = "xqt-platform"
version = "0.1-SNAPSHOT"

rootProject.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin> {
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().download =
System.getProperty("nodejs.download") != "false"
}

kotlin {
jvm {
compilations.all {
Expand Down

0 comments on commit 6cba400

Please sign in to comment.