rodrigonull commented on code in PR #1967:
URL: 
https://github.com/apache/incubator-kie-kogito-apps/pull/1967#discussion_r1475947906


##########
.github/workflows/publish-jitexecutor-native.yml:
##########
@@ -0,0 +1,155 @@
+name: "Publish jitexecutor-native"
+
+on:
+  schedule:
+    - cron: '0 16 * * 0' # Every sunday at 4:00PM
+
+jobs:
+  build_jitexecutor_native_binaries:
+    runs-on: ${{ matrix.os }}
+    strategy:
+      fail-fast: true
+      matrix:
+        os: [ubuntu-latest, macos-latest, windows-latest]
+
+    steps:
+      - name: Get current date
+        id: date
+        run: echo "CURRENT_DATE=$(date +'%Y%m%d')" >> "$GITHUB_OUTPUT"
+        shell: bash
+
+      - name: Set version
+        id: version
+        run: | 
+          VERSION="999-${{ steps.date.outputs.CURRENT_DATE }}"
+          echo "TAG=$VERSION" >> "$GITHUB_OUTPUT"
+          echo "PROJECT_VERSION=$VERSION-SNAPSHOT" >> "$GITHUB_OUTPUT"
+          echo "NPM_VERSION=999.0.0-${{ steps.date.outputs.CURRENT_DATE 
}}-SNAPSHOT" >> "$GITHUB_OUTPUT"
+        shell: bash
+
+      - name: "Set long paths for Windows"
+        if: runner.os == 'Windows'
+        run: git config --system core.longpaths true
+
+      - name: "Checkout kie-kogito-apps"
+        uses: actions/checkout@v3
+        with:
+          repository: apache/incubator-kie-kogito-apps
+          ref: ${{ steps.version.outputs.TAG }}
+
+      - name: "Set up Maven"
+        uses: stCarolas/[email protected]
+        with:
+          maven-version: 3.9.3
+
+      - name: "Set up JDK 17"
+        if: runner.os != 'Windows'
+        uses: actions/setup-java@v3
+        with:
+          java-version: "17"
+          distribution: "zulu"

Review Comment:
   That is the Azul Zulu OpenJDK distribution. The same distribution is being 
used in the KIE Tools github actions so I haven't changed that. This is the 
list of supported distributions in case we want to use another one: 
https://github.com/actions/setup-java?tab=readme-ov-file#supported-distributions



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to