dweiss commented on code in PR #13456:
URL: https://github.com/apache/lucene/pull/13456#discussion_r1629249452


##########
.github/workflows/run-checks-gradle-upgrade.yml:
##########
@@ -0,0 +1,88 @@
+name: "Run checks: gradle upgrade"
+
+on:
+  workflow_dispatch:
+
+  pull_request:
+    branches:
+      - 'main'
+      - 'branch_9x'
+    paths:
+      - '.github/workflows/run-checks-gradle-upgrade.yml'
+      - 'gradle/wrapper/**'
+
+  push:
+    branches:
+      - 'main'
+      - 'branch_9x'
+    paths:
+      - '.github/workflows/run-checks-gradle-upgrade.yml'
+      - 'gradle/wrapper/**'
+
+env:
+  GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+
+jobs:
+  gradleSanityCheck:
+    name: "Run tasks (java: ${{ matrix.java-version }}, alt-java: ${{ 
matrix.uses-alt-java }})"
+    timeout-minutes: 30
+
+    strategy:
+      matrix:
+        os: [ ubuntu-latest ]
+        java-version: [ '22' ]
+        uses-alt-java: [ true, false ]
+
+    runs-on: ${{ matrix.os }}
+
+    env:
+      ALT_JAVA_DIR: /tmp/alt-java
+
+    steps:
+      - uses: actions/checkout@v4
+      - uses: ./.github/actions/prepare-for-build
+        with:
+          java-version: ${{ matrix.java-version }}
+
+      - name: Set up RUNTIME_JAVA_HOME variable
+        if: ${{ matrix.uses-alt-java }}

Review Comment:
   If we're running with the "uses-alt-java" switch, we set up an "alternative" 
java distribution under /tmp and use it to execute the same set of gradle tasks.



##########
.github/workflows/run-checks-gradle-upgrade.yml:
##########
@@ -0,0 +1,88 @@
+name: "Run checks: gradle upgrade"
+
+on:
+  workflow_dispatch:
+
+  pull_request:
+    branches:
+      - 'main'
+      - 'branch_9x'
+    paths:
+      - '.github/workflows/run-checks-gradle-upgrade.yml'
+      - 'gradle/wrapper/**'
+
+  push:
+    branches:
+      - 'main'
+      - 'branch_9x'
+    paths:
+      - '.github/workflows/run-checks-gradle-upgrade.yml'
+      - 'gradle/wrapper/**'
+
+env:
+  GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+
+jobs:
+  gradleSanityCheck:
+    name: "Run tasks (java: ${{ matrix.java-version }}, alt-java: ${{ 
matrix.uses-alt-java }})"
+    timeout-minutes: 30
+
+    strategy:
+      matrix:
+        os: [ ubuntu-latest ]
+        java-version: [ '22' ]
+        uses-alt-java: [ true, false ]

Review Comment:
   this is the configuration matrix switch that is used to control whether the 
build runs with a separate RUNTIME_JAVA_HOME or without it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to