From ce501565a054a229f9d0a40916b3df7cb575388a Mon Sep 17 00:00:00 2001 From: Fabio Niephaus Date: Tue, 21 Mar 2023 15:14:27 +0100 Subject: [PATCH] Upgrade to release branch for GraalVM `23.0` --- .github/workflows/ci.yml | 28 +++++++++++++++------------- mx.trufflesqueak/suite.py | 4 ++-- mx.trufflesqueak/utils.sh | 5 ++++- 3 files changed, 21 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bfbdfd909..8062d7e3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,10 @@ on: - 'docs/**' - gu-catalog.properties +env: + VERBOSE_GRAALVM_LAUNCHERS: true + MX_GATE_OPTS: '--strict-mode --omit-clean --no-warning-as-error' + jobs: style_and_build_config: name: Code Style + Build Config @@ -40,23 +44,21 @@ jobs: mx.trufflesqueak/utils.sh "set-up-mx && shallow-clone-graal && set-up-labsjdk labsjdk-ce-17 ~/" # Set up style dependencies sudo apt update && sudo apt install python3-pip python-setuptools - cat ../graal/common.json | - jq -r '.deps.common.packages | to_entries[] | select(.key | startswith("pip:")) | (.key | split(":")[1]) + .value' | - xargs sudo pip install + jq -r '.pip | to_entries[] | .key+.value' ../graal/common.json | xargs sudo pip install - name: Check style and perform full build - run: mx gate --strict-mode --tags style,fullbuild + run: mx gate ${{ env.MX_GATE_OPTS }} --tags style,fullbuild build-jar: strategy: fail-fast: false matrix: os: [ubuntu-20.04, ubuntu-20.04-aarch64, macos-11, windows-2019] - java: [17, 19] + java: [17, 20] env: RUN_TESTS: "${{ matrix.os == 'ubuntu-20.04' || matrix.java == 17 }}" RUN_WITH_COVERAGE: "${{ matrix.os == 'ubuntu-20.04' && matrix.java == 17 }}" MX_ENV: "trufflesqueak-jar" - VERBOSE_GRAALVM_LAUNCHERS: true + name: JAR ${{ matrix.os }} + JDK${{ matrix.java }} timeout-minutes: 60 runs-on: ${{ matrix.os }} @@ -79,7 +81,7 @@ jobs: shell: cmd run: | call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 - call mx --env ${{ env.MX_ENV }} --no-download-progress build --dependencies SMALLTALK_INSTALLABLE_JAVA${{ matrix.java }},GRAALVM_TRUFFLESQUEAK_JAR_JAVA${{ matrix.java }} + call mx --env ${{ env.MX_ENV }} --no-download-progress build --dependencies SMALLTALK_INSTALLABLE_CE_JAVA${{ matrix.java }},GRAALVM_TRUFFLESQUEAK_JAR_JAVA${{ matrix.java }} call mx --env ${{ env.MX_ENV }} graalvm-home > graalvm-home-with-forward-slashes.txt set /p GRAALVM_HOME=>%GITHUB_PATH% echo GRAALVM_HOME=%GRAALVM_HOME%>>%GITHUB_ENV% echo [%GRAALVM_HOME% set as $GRAALVM_HOME] - call mx --env ${{ env.MX_ENV }} paths SMALLTALK_INSTALLABLE_JAVA${{ matrix.java }} > installable-path-with-forward-slashes.txt + call mx --env ${{ env.MX_ENV }} paths SMALLTALK_INSTALLABLE_CE_JAVA${{ matrix.java }} > installable-path-with-forward-slashes.txt set /p INSTALLABLE_PATH= /dev/null + # run fetch-jdk in graal repo, so that it picks up the latest common.json "${RUNNER_TEMP}/mx/mx${mx_suffix}" --quiet --java-home= fetch-jdk --jdk-id "${jdk_id}" --to "${dl_dir}" --alias "${target_dir}" + popd > /dev/null enable-jdk "${target_dir}${JAVA_HOME_SUFFIX}" echo "[${jdk_id} set up successfully]" }