Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #265 from jaydee029/build
Browse files Browse the repository at this point in the history
Added log generation/uploading, changed java version
  • Loading branch information
jadecarino authored Aug 21, 2024
2 parents 6817c33 + b22b2e6 commit 978f791
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: '11'
java-version: '17'
distribution: 'semeru'

- name: Print githash
Expand All @@ -58,7 +58,7 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 6.9.2
gradle-version: 8.9

- name: Build Extensions source code with gradle
if: github.event_name == 'push'
Expand All @@ -69,12 +69,13 @@ jobs:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}
run: |
gradle -b galasa-extensions-parent/build.gradle check publish \
set -o pipefail
gradle -b galasa-extensions-parent/build.gradle check publish --info \
-PsourceMaven=https://development.galasa.dev/${{ env.ARGO_APP_BRANCH }}/maven-repo/framework \
-PcentralMaven=https://repo.maven.apache.org/maven2/ \
-PtargetMaven=${{ github.workspace }}/repo \
-PjacocoEnabled=true \
-PisMainOrRelease=true
-PisMainOrRelease=true 2>&1 | tee build.log
- name: Build Extensions source code with gradle
if: github.event_name == 'workflow_dispatch' # Use the input values provided by the workflow dispatch.
Expand All @@ -85,12 +86,20 @@ jobs:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}
run: |
gradle -b galasa-extensions-parent/build.gradle check publish \
set -o pipefail
gradle -b galasa-extensions-parent/build.gradle check publish --info \
-PsourceMaven=https://development.galasa.dev/${{ env.ARGO_APP_BRANCH }}/maven-repo/framework \
-PcentralMaven=https://repo.maven.apache.org/maven2/ \
-PtargetMaven=${{ github.workspace }}/repo \
-PjacocoEnabled=${{ inputs.jacocoEnabled }} \
-PisMainOrRelease=${{ inputs.isMainOrRelease }}
-PisMainOrRelease=${{ inputs.isMainOrRelease }} 2>&1 | tee build.log
- name: Upload Gradle Build Log
if: always()
uses: actions/upload-artifact@v4
with:
name: gradle-build-log
path: build.log

- name: Login to Github Container Registry
uses: docker/login-action@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: '11'
java-version: '17'
distribution: 'semeru'

- name: Print githash
Expand All @@ -29,11 +29,11 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 6.9.2
gradle-version: 8.9

- name: Build Extensions source code with gradle
run: |
gradle -b galasa-extensions-parent/build.gradle check publish \
gradle -b galasa-extensions-parent/build.gradle check publish --info \
-PsourceMaven=https://development.galasa.dev/gh/maven-repo/framework \
-PcentralMaven=https://repo.maven.apache.org/maven2/ \
-PtargetMaven=${{ github.workspace }}/repo
Expand Down

0 comments on commit 978f791

Please sign in to comment.