This is an automated email from the ASF dual-hosted git repository.
rantunes pushed a commit to branch jit-executor-10
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-apps.git
The following commit(s) were added to refs/heads/jit-executor-10 by this push:
new 1e1769439 Fix jit-executor-rc workflow
1e1769439 is described below
commit 1e1769439fb6319204994c080d398e6e4b850524
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Tue Aug 27 10:12:30 2024 -0300
Fix jit-executor-rc workflow
---
.../workflows/publish-jitexecutor-native-rc.yml | 75 +++++++++++++++++++---
1 file changed, 66 insertions(+), 9 deletions(-)
diff --git a/.github/workflows/publish-jitexecutor-native-rc.yml
b/.github/workflows/publish-jitexecutor-native-rc.yml
index 38c60962f..3516109b4 100644
--- a/.github/workflows/publish-jitexecutor-native-rc.yml
+++ b/.github/workflows/publish-jitexecutor-native-rc.yml
@@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: true
matrix:
- os: [ubuntu-latest, macos-latest]
+ os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Set version
@@ -60,10 +60,10 @@ jobs:
- name: Setup maven settings (Linux and MacOS)
if: (runner.os == 'Linux' || runner.os == 'macOS')
env:
- M2_PATH: ${{ github.workspace }}
+ WORKDIR_PATH: ${{ github.workspace }}
KOGITO_RUNTIMES_REPO: ${{
github.event.inputs.kogito_runtimes_repository }}
run: |
- mkdir -p ${M2_PATH}/.m2
+ mkdir -p ${WORKDIR_PATH}/.m2
echo "<settings>
<servers>
<server>
@@ -101,7 +101,56 @@ jobs:
<activeProfiles>
<activeProfile>additional_repos</activeProfile>
</activeProfiles>
- </settings>" > ${M2_PATH}/.m2/settings.xml
+ </settings>" > ${WORKDIR_PATH}/.m2/settings.xml
+
+ - name: Setup maven settings (Windows)
+ if: runner.os == 'Windows'
+ env:
+ WORKDIR_PATH: ${{ github.workspace }}
+ KOGITO_RUNTIMES_REPO: ${{
github.event.inputs.kogito_runtimes_repository }}
+ shell: pwsh
+ run: |
+ New-Item -Name ".m2" -Path "${WORKDIR_PATH}" -ItemType Directory
+ $contentToAdd = @"
+ <settings>
+ <servers>
+ <server>
+ <id>apache.releases.https</id>
+ <username>${{ secrets.NEXUS_STAGE_DEPLOYER_USER }}</username>
+ <password>${{ secrets.NEXUS_STAGE_DEPLOYER_PW }}</password>
+ </server>
+ <server>
+ <id>apache.snapshots.https</id>
+ <username>${{ secrets.NEXUS_USER }}</username>
+ <password>${{ secrets.NEXUS_PW }}</password>
+ </server>
+ </servers>
+ <profiles>
+ <profile>
+ <id>additional_repos</id>
+ <repositories>
+ <repository>
+ <id>apache-kie-kogito-runtimes-staging-repository</id>
+ <name>Apache KIE Kogito Runtimes Staging Repository</name>
+ <url>${KOGITO_RUNTIMES_REPO}</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ </repository>
+ </repositories>
+ </profile>
+ </profiles>
+ <activeProfiles>
+ <activeProfile>additional_repos</activeProfile>
+ </activeProfiles>
+ </settings>"@
+ Add-Content "${WORKDIR_PATH}\.m2\settings.xml" $contentToAdd
- name: "Set up JDK 17"
uses: actions/setup-java@v4
@@ -168,9 +217,11 @@ jobs:
- name: "Update versions Windows"
if: runner.os == 'Windows' && github.event_name != 'pull_request'
shell: pwsh
+ env:
+ SETTINGS_FILE_PATH: ${{ github.workspace }}\.m2\settings.xml
run: |
- mvn -B -fae -ntp -N -e versions:update-parent -DparentVersion="[${{
steps.version.outputs.PROJECT_VERSION }}]" -DallowSnapshots=true
-DgenerateBackupPoms=false
- mvn -B -fae -ntp -N -e versions:update-child-modules
-DallowSnapshots=true -DgenerateBackupPoms=false
+ mvn -B -fae -ntp -N -e versions:update-parent -DparentVersion="[${{
steps.version.outputs.PROJECT_VERSION }}]" -DallowSnapshots=true
-DgenerateBackupPoms=false -s ${SETTINGS_FILE_PATH}
+ mvn -B -fae -ntp -N -e versions:update-child-modules
-DallowSnapshots=true -DgenerateBackupPoms=false -s ${SETTINGS_FILE_PATH}
- name: "Build macOS"
if: runner.os == 'macOS' && github.event_name == 'pull_request'
@@ -181,8 +232,10 @@ jobs:
- name: "Build and publish macOS"
if: runner.os == 'macOS' && github.event_name != 'pull_request'
shell: bash
+ env:
+ SETTINGS_FILE_PATH: ${{ github.workspace }}/.m2/settings.xml
run: |
- mvn clean deploy -B -ntp -DdeployAtEnd -DskipTests -pl
jitexecutor-native/jitexecutor-native-darwin -am -Pjitexecutor-native
-Papache-release
+ mvn clean deploy -B -ntp -DdeployAtEnd -DskipTests -pl
jitexecutor-native/jitexecutor-native-darwin -am -Pjitexecutor-native
-Papache-release -s ${SETTINGS_FILE_PATH}
- name: "Build Linux"
if: runner.os == 'Linux' && github.event_name == 'pull_request'
@@ -193,8 +246,10 @@ jobs:
- name: "Build and Publish Linux"
if: runner.os == 'Linux' && github.event_name != 'pull_request'
shell: bash
+ env:
+ SETTINGS_FILE_PATH: ${{ github.workspace }}/.m2/settings.xml
run: |
- mvn clean deploy -B -ntp -DdeployAtEnd -DskipTests -pl
jitexecutor-native/jitexecutor-native-linux -am -Pjitexecutor-native
-Papache-release
+ mvn clean deploy -B -ntp -DdeployAtEnd -DskipTests -pl
jitexecutor-native/jitexecutor-native-linux -am -Pjitexecutor-native
-Papache-release -s ${SETTINGS_FILE_PATH}
- name: "Build Windows"
if: runner.os == 'Windows' && github.event_name == 'pull_request'
@@ -205,8 +260,10 @@ jobs:
- name: "Build and Publish Windows"
if: runner.os == 'Windows' && github.event_name != 'pull_request'
shell: pwsh
+ env:
+ SETTINGS_FILE_PATH: ${{ github.workspace }}\.m2\settings.xml
run: |
- mvn clean deploy -B -ntp -DdeployAtEnd -DskipTests -pl
jitexecutor-native/jitexecutor-native-win32 -am -Pjitexecutor-native
-Papache-release
+ mvn clean deploy -B -ntp -DdeployAtEnd -DskipTests -pl
jitexecutor-native/jitexecutor-native-win32 -am -Pjitexecutor-native
-Papache-release -s ${SETTINGS_FILE_PATH}
- name: "Upload JIT Executor binary"
uses: actions/upload-artifact@v4
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]