Skip to content

Commit

Permalink
Change matrix to work with graalvm-jdk pairs and remove builds for JD…
Browse files Browse the repository at this point in the history
…K19 (#203)
  • Loading branch information
dnestoro authored Jan 27, 2023
1 parent 3a53403 commit 3fbec45
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-all-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
./gradlew generateMatrixMatchingCoordinates -Pcoordinates=all
test-all-metadata:
name: "🧪 ${{ matrix.coordinates }} (GraalVM ${{ matrix.version }} ${{ matrix.java-version }} @ ${{ matrix.os }})"
name: "🧪 ${{ matrix.coordinates }} (GraalVM ${{ matrix.versions.graalvm }} ${{ matrix.versions.java }} @ ${{ matrix.os }})"
runs-on: ${{ matrix.os }}
timeout-minutes: 20
needs: get-all-metadata
Expand All @@ -45,8 +45,8 @@ jobs:
- name: "🔧 Prepare environment"
uses: graalvm/setup-graalvm@v1
with:
version: ${{ matrix.version }}
java-version: ${{ matrix.java-version }}
version: ${{ matrix.versions.graalvm }}
java-version: ${{ matrix.versions.java }}
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-changed-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
./gradlew generateMatrixDiffCoordinates -PbaseCommit=${{ github.event.pull_request.base.sha }} -PnewCommit=${{ github.event.pull_request.head.sha }}
test-changed-metadata:
name: "🧪 ${{ matrix.coordinates }} (GraalVM ${{ matrix.version }} ${{ matrix.java-version }} @ ${{ matrix.os }})"
name: "🧪 ${{ matrix.coordinates }} (GraalVM ${{ matrix.versions.graalvm }} ${{ matrix.versions.java }} @ ${{ matrix.os }})"
if: needs.get-changed-metadata.result == 'success' && needs.get-changed-metadata.outputs.none-found != 'true'
runs-on: ${{ matrix.os }}
timeout-minutes: 20
Expand All @@ -49,8 +49,8 @@ jobs:
- name: "🔧 Prepare environment"
uses: graalvm/setup-graalvm@v1
with:
version: ${{ matrix.version }}
java-version: ${{ matrix.java-version }}
version: ${{ matrix.versions.graalvm }}
java-version: ${{ matrix.versions.java }}
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ if (project.hasProperty("baseCommit")) {
}

def matrixDefault = [
"version" : ["22.3.0", "dev"], // TODO: Add other supported versions
"java-version": ["17"], // TODO: Add "17", "19"
"versions" : [
// [ "graalvm": "dev", "java": "dev" ], // TODO: uncomment this once we are ready to run tests on JDK19
[ "graalvm": "latest", "java": "17"]
],
"os" : ["ubuntu-latest"] // TODO: Add support for "windows-latest", "macos-latest"
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repositories {

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
languageVersion = JavaLanguageVersion.of(JavaVersion.current().majorVersion)
vendor = JvmVendorSpec.GRAAL_VM
}
}
Expand Down

0 comments on commit 3fbec45

Please sign in to comment.