Skip to content

Commit

Permalink
github: move svm gate to JDK latest
Browse files Browse the repository at this point in the history
  • Loading branch information
zapster committed Jan 17, 2025
1 parent 2b1e654 commit fc9bf62
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# The Universal Permissive License (UPL), Version 1.0
Expand Down Expand Up @@ -76,6 +76,7 @@ concurrency:

env:
JAVA_HOME: ${{ github.workspace }}/jdk
TOOLS_JAVA_HOME_LOCATION: ${{ github.workspace }}/tools-jdk
LANG: en_US.UTF-8
MX_GIT_CACHE: refcache
MX_PATH: ${{ github.workspace }}/mx
Expand Down Expand Up @@ -111,7 +112,8 @@ jobs:
PRIMARY: "espresso"
# /substratevm
- env:
JDK_VERSION: "21"
JDK_VERSION: "latest"
TOOLS_JDK_VERSION: "21"
GATE_TAGS: "style,fullbuild"
PRIMARY: "substratevm"
- env:
Expand Down Expand Up @@ -189,6 +191,11 @@ jobs:
run: |
mkdir jdk-dl
${MX_PATH}/mx --java-home= fetch-jdk --jdk-id labsjdk-ce-${JDK_VERSION} --to jdk-dl --alias ${JAVA_HOME}
- name: Fetch Tools JDK
env: ${{ matrix.env }}
if: ${{ matrix.env.TOOLS_JDK_VERSION != '' }}
run: |
${MX_PATH}/mx --java-home= fetch-jdk --jdk-id labsjdk-ce-${TOOLS_JDK_VERSION} --to jdk-dl --alias ${TOOLS_JAVA_HOME_LOCATION}
- name: Update dependency cache
if: ${{ env.MX_RUNS_DEBUG == 'true' || env.MX_RUNS_STYLE == 'true' }}
run: sudo apt update
Expand Down Expand Up @@ -217,7 +224,7 @@ jobs:
run: rm -rf .git
- name: Build GraalVM and run gate with tags
env: ${{ matrix.env }}
run: ${MX_PATH}/mx --primary-suite-path ${PRIMARY} --java-home=${JAVA_HOME} gate --strict-mode ${{ matrix.env.GATE_OPTS }} --tags ${GATE_TAGS}
run: ${MX_PATH}/mx --primary-suite-path ${PRIMARY} --java-home=${JAVA_HOME} --tools-java-home=${{ matrix.env.TOOLS_JDK_VERSION != '' && env.TOOLS_JAVA_HOME_LOCATION || '' }} gate --strict-mode ${{ matrix.env.GATE_OPTS }} --tags ${GATE_TAGS}
if: ${{ matrix.env.GATE_TAGS != '' }}
- name: Build GraalVM and run gate without tags
env: ${{ matrix.env }}
Expand Down

0 comments on commit fc9bf62

Please sign in to comment.