Skip to content

Commit

Permalink
update to use GraalVM 22.3.1 version
Browse files Browse the repository at this point in the history
  • Loading branch information
chirontt committed Mar 21, 2023
1 parent 8cdcac2 commit 2b79280
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
java-version: [11, 17]
graalvm-version: ['22.3.0']
graalvm-version: ['22.3.1']
fail-fast: false

steps:
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Download Liberica NIK ${{ matrix.graalvm-version }} for Java ${{ matrix.java-version }} (Linux)
if: runner.os == 'Linux' && matrix.java-version == 17
run: |
download_url="https://download.bell-sw.com/vm/22.3.0/bellsoft-liberica-vm-core-openjdk17.0.5+8-22.3.0+2-linux-amd64.tar.gz"
download_url="https://download.bell-sw.com/vm/22.3.1/bellsoft-liberica-vm-core-openjdk17.0.6+10-22.3.1+1-linux-amd64.tar.gz"
wget -O $RUNNER_TEMP/java_package.tar.gz $download_url
- name: Set up Liberica NIK ${{ matrix.graalvm-version }} for Java ${{ matrix.java-version }} (Linux)
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
java-version: [11, 17]
graalvm-version: ['22.3.0']
graalvm-version: ['22.3.1']
fail-fast: false

steps:
Expand All @@ -35,6 +35,21 @@ jobs:
jdkFile: ${{ runner.temp }}/java_package.tar.gz
architecture: x64

- name: Download Liberica NIK ${{ matrix.graalvm-version }} for Java ${{ matrix.java-version }} (Linux)
if: runner.os == 'Linux' && matrix.java-version == 17
run: |
download_url="https://download.bell-sw.com/vm/22.3.1/bellsoft-liberica-vm-core-openjdk17.0.6+10-22.3.1+1-linux-amd64.tar.gz"
wget -O $RUNNER_TEMP/java_package.tar.gz $download_url
- name: Set up Liberica NIK ${{ matrix.graalvm-version }} for Java ${{ matrix.java-version }} (Linux)
if: runner.os == 'Linux' && matrix.java-version == 17
uses: actions/setup-java@v3
with:
distribution: jdkfile
java-version: ${{ matrix.java-version }}
jdkFile: ${{ runner.temp }}/java_package.tar.gz
architecture: x64

- name: Set up GraalVM ${{ matrix.graalvm-version }} for Java ${{ matrix.java-version }}
if: runner.os != 'Linux' || matrix.java-version != 17
uses: graalvm/setup-graalvm@v1
Expand Down
4 changes: 2 additions & 2 deletions trunk/SwingSet3/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
plugins {
id 'application'
id 'org.graalvm.buildtools.native' version '0.9.17'
id 'org.graalvm.buildtools.native' version '0.9.20'
}

tasks.wrapper {
gradleVersion = '7.5.1'
gradleVersion = '8.0.2'
distributionType = Wrapper.DistributionType.ALL
}

Expand Down
Binary file modified trunk/SwingSet3/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion trunk/SwingSet3/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-all.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
12 changes: 8 additions & 4 deletions trunk/SwingSet3/gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand All @@ -80,10 +80,10 @@ do
esac
done

APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

APP_NAME="Gradle"
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
Expand Down Expand Up @@ -143,12 +143,16 @@ fi
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
Expand Down
1 change: 1 addition & 0 deletions trunk/SwingSet3/gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

Expand Down
2 changes: 1 addition & 1 deletion trunk/SwingSet3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<properties>
<maven.compiler.release>11</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<native.maven.plugin.version>0.9.17</native.maven.plugin.version>
<native.maven.plugin.version>0.9.20</native.maven.plugin.version>
<main.class>com.github.chirontt.graalvm.swingset3.NativeSwingSet3</main.class>
<splash.image>com/sun/swingset3/resources/images/splash.png</splash.image>
<!-- system properties for the application when run by exec:exec command;
Expand Down

0 comments on commit 2b79280

Please sign in to comment.