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

Commit

Permalink
chore: Update Graalvm version in GitHub workflows
Browse files Browse the repository at this point in the history
* Used community version instead of Oracle version
* Set maximum heap size for building native image
  • Loading branch information
mkralik3 committed Jul 10, 2023
1 parent f7a0e3f commit 4e73488
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ jobs:
- name: 🥸 Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
version: '22.3.0'
java-version: '17'
java-version: '17.0.7'
distribution: 'graalvm-community'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: 'maven'
Expand All @@ -74,7 +74,7 @@ jobs:
disk-root: "C:"
if: ${{ matrix.os == 'windows-latest' }}
- name: 🤳 Run native tests
run: mvn ${{ matrix.os == 'windows-latest' && '--%' || '' }} install -Pnative -Dquarkus.log.category.\"io.kaoto.backend.model.deployment.kamelet.step.FlowStepDeserializer\".level=OFF
run: mvn ${{ matrix.os == 'windows-latest' && '--%' || '' }} install -Pnative -Dquarkus.native.native-image-xmx=5g -Dquarkus.log.category.\"io.kaoto.backend.model.deployment.kamelet.step.FlowStepDeserializer\".level=OFF
- name: Archive Quarkus log for native tests
uses: actions/upload-artifact@v3
if: failure()
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/generate-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: 🤳 Build Native Quarkus
run: mvn -B install -Pnative
run: mvn -B install -Pnative -Dquarkus.native.native-image-xmx=5g
- name: 📤 Login to DockerHub
uses: docker/login-action@v2
env:
Expand Down Expand Up @@ -100,8 +100,8 @@ jobs:
- name: 🥸 Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
version: '22.3.0'
java-version: '17.0.7'
distribution: 'graalvm-community'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: 🔥 Cache Maven packages
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- name: 🥸 Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
version: '22.3.0'
java-version: '17.0.7'
distribution: 'graalvm-community'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: 'maven'
Expand All @@ -45,7 +45,7 @@ jobs:
disk-root: "C:"
if: ${{ matrix.os == 'windows-latest' }}
- name: 🤳 Build Native Quarkus
run: mvn install -Pnative -DskipTests
run: mvn install -Pnative -Dquarkus.native.native-image-xmx=5g -DskipTests
- name: 🛂 Find the version - non-Windows
run: 'echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV'
if: ${{ matrix.os != 'windows-latest' }}
Expand Down

0 comments on commit 4e73488

Please sign in to comment.