Skip to content

Commit

Permalink
Try org.gradle.parallel by default and configure it on CI (#1370)
Browse files Browse the repository at this point in the history
* Try org.gradle.parallel by default and configure it on CI

* Try to be explicit with parallel in JVM and Kover
  • Loading branch information
soywiz authored Mar 13, 2023
1 parent e4a422e commit 60b719e
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/TEST.yml
Original file line number Diff line number Diff line change
@@ -82,14 +82,16 @@ jobs:
ENABLE_BENCHMARKS: true
steps:
- { uses: actions/checkout@v3 }
#- { name: Configure local.properties, run: "echo org.gradle.parallel=true >> local.properties && echo org.gradle.workers.max=2 >> local.properties" }
- { name: Configure local.properties, run: "echo org.gradle.parallel=true >> local.properties" }
- { name: Install freeglut3 & openal, run: sudo apt-get update && sudo apt-get -y install freeglut3-dev libopenal-dev xvfb }
- { name: Run Xvfb in Background, run: "Xvfb :99 &" }
- { name: Set up JDK 1.8, uses: actions/setup-java@v1, with: { java-version: 1.8 } }
- { name: Gradle cache, uses: ./.github/actions/gradle-cache }
- { name: Grant execute permission for gradlew, run: chmod +x gradlew }
- { name: Start gradle, run: ./gradlew }
- { name: Building classes, run: ./gradlew compileTestKotlinJvm }
- { name: Testing JVM, run: "./gradlew jvmTest", env: { EGL_LOG_LEVEL: debug, LIBGL_DEBUG: verbose, LIBGL_ALWAYS_SOFTWARE: true, MESA_DEBUG: true } }
- { name: Building classes, run: ./gradlew --parallel compileTestKotlinJvm }
- { name: Testing JVM, run: "./gradlew --parallel jvmTest", env: { EGL_LOG_LEVEL: debug, LIBGL_DEBUG: verbose, LIBGL_ALWAYS_SOFTWARE: true, MESA_DEBUG: true } }
- { name: Archive Test Results, if: failure(), uses: actions/upload-artifact@v3, with: { name: screenshot-test-results-linux, retention-days: 21, path: "**/build/reports", if-no-files-found: ignore } }
- { name: Check sandbox compiles, run: "./gradlew :korge-sandbox:jvmJar" }
- { name: Publish to maven local, run: ./gradlew publishJvmLocal }
@@ -119,7 +121,7 @@ jobs:
# name: coverage-results
# path: build/reports/kover/merged/html/
#- { name: Kover Merged XML Reports, uses: GabrielBB/xvfb-action@v1, with: { run: ./gradlew koverMergedXmlReport } }
- { name: Kover Merged XML Reports, run: ./gradlew koverMergedXmlReport }
- { name: Kover Merged XML Reports, run: ./gradlew --parallel koverMergedXmlReport }
- uses: codecov/codecov-action@v3
with:
files: ./build/reports/kover/merged/xml/report.xml
@@ -239,6 +241,7 @@ jobs:
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dkotlin.compiler.execution.strategy=in-process -Dorg.gradle.workers.max=3
steps:
- { uses: actions/checkout@v3 }
- { name: Configure local.properties, run: "echo org.gradle.parallel=false >> local.properties" }
- { name: Download, shell: cmd, run: "curl -L -o opengl32-x64.zip https://github.com/korlibs/mesa-dist-win/releases/download/21.2.3/opengl32-x64.zip" }
- { name: unzip, shell: cmd, run: "unzip opengl32-x64.zip" }
- { name: unzip to korge, shell: cmd, run: "unzip opengl32-x64.zip -d korge" }
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -68,3 +68,5 @@ org.gradle.daemon=true
kotlin.incremental.useClasspathSnapshot=true

#kotlin.build.report.output=file

org.gradle.parallel=true

0 comments on commit 60b719e

Please sign in to comment.