Skip to content

Commit

Permalink
Switch to Oracle GraalVM JDK 17
Browse files Browse the repository at this point in the history
  • Loading branch information
JohT committed Jul 2, 2023
1 parent 8b6c2a3 commit 9d84cab
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 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,10 @@ 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'

# Build the native image of the application.
- name: Build native image with Maven
Expand All @@ -80,10 +77,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 +95,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

0 comments on commit 9d84cab

Please sign in to comment.