Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Oracle GraalVM JDK 17 #207

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions .github/workflows/native-image.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: GraalVM Community Edition Continuous Integration
name: GraalVM Continuous Integration

on:
push:
Expand Down Expand Up @@ -32,11 +32,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: ['java17']
java: ['17']
env:
CI_COMMIT_MESSAGE: Automated native image agent results (CI)
CI_COMMIT_AUTHOR: ${{ github.event.repository.name }} Continuous Integration
GRAALVM_VERSION: 22.3.2
steps:
- name: Checkout git repository
uses: actions/checkout@v3
Expand All @@ -53,12 +52,11 @@ jobs:

# Download and prepare GraalVM Community Edition including native image tools
- name: Setup GraalVM Community Edition
uses: DeLaGuardo/setup-graalvm@5.0
uses: graalvm/setup-graalvm@v1
with:
graalvm: ${{ env.GRAALVM_VERSION }}
java: ${{ matrix.java }}
- name: Install Native Image
run: gu install native-image
java-version: ${{ matrix.java }}
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}

# Build the native image of the application.
- name: Build native image with Maven
Expand All @@ -80,10 +78,8 @@ jobs:
- name: Get the quarkus version from the maven pom variable and set the environment variable "quarkus-version"
working-directory: showcase-quarkus-eventsourcing
run: echo "quarkus-version=$(mvn -q help:evaluate -Dexpression=quarkus.platform.version -DforceStdout | tr . -)" >> $GITHUB_ENV
- name: Get the GraalVM version with "-" instead of "." delimiters
run: echo "graalvm-version-string=$(echo ${{ env.GRAALVM_VERSION }} | tr . -)" >> $GITHUB_ENV
- name: Assemble the name of the directory for the native image agent output files and set the environment variable "native-image-agent-results-directory"
run: echo "native-image-agent-results-directory=native-image-agent-results/${{ matrix.java }}-axon-${{ env.axon-version }}-quarkus-${{ env.quarkus-version }}-graalvm-${{ env.graalvm-version-string }}" >> $GITHUB_ENV
run: echo "native-image-agent-results-directory=native-image-agent-results/java-${{ matrix.java }}-axon-${{ env.axon-version }}-quarkus-${{ env.quarkus-version }}-graalvm-oracle" >> $GITHUB_ENV

# Create the directory with the previously assembled name within "native-image-agent-results" and fill in the result files.
- name: Create the native image agent results directory
Expand All @@ -100,7 +96,7 @@ jobs:
- name: Archive native image agent results
uses: actions/upload-artifact@v3
with:
name: native-image-agent-results-${{ matrix.java }}
name: native-image-agent-results-java-${{ matrix.java }}
path: showcase-quarkus-eventsourcing/${{ env.native-image-agent-results-directory }}
if-no-files-found: error
retention-days: 5
Expand Down
14 changes: 0 additions & 14 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,5 @@
],
"groupName": "Quarkus"
}
],
"regexManagers": [
{
"fileMatch": [
"^(workflow-templates|\\.github\/workflows)\\/[^/]+\\.ya?ml$",
"(^|\\/)action\\.ya?ml$]"
],
"matchStrings": [
"GRAALVM_VERSION:\\s+?(?<currentValue>.*?)\\s+"
],
"depNameTemplate": "graalvm/graalvm-ce-builds",
"datasourceTemplate": "github-releases",
"extractVersionTemplate": "^v?m?-?(?<version>.*?)$"
}
]
}