[#449] move to GraalVM 20.1.0 java11
This commit is contained in:
parent
03fba08e31
commit
c3f9480efe
13 changed files with 132 additions and 78 deletions
|
|
@ -7,7 +7,7 @@ jobs:
|
||||||
jvm:
|
jvm:
|
||||||
docker:
|
docker:
|
||||||
# specify the version you desire here
|
# specify the version you desire here
|
||||||
- image: circleci/clojure:lein-2.8.1
|
- image: circleci/clojure:lein-2.9.1
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
environment:
|
environment:
|
||||||
LEIN_ROOT: "true"
|
LEIN_ROOT: "true"
|
||||||
|
|
@ -66,14 +66,14 @@ jobs:
|
||||||
key: v1-dependencies-{{ checksum "project.clj" }}
|
key: v1-dependencies-{{ checksum "project.clj" }}
|
||||||
linux:
|
linux:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/clojure:lein-2.8.1
|
- image: circleci/clojure:lein-2.9.1
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
environment:
|
environment:
|
||||||
LEIN_ROOT: "true"
|
LEIN_ROOT: "true"
|
||||||
GRAALVM_HOME: /home/circleci/graalvm-ce-java8-19.3.2
|
GRAALVM_HOME: /home/circleci/graalvm-ce-java11-20.1.0
|
||||||
BABASHKA_PLATFORM: linux # used in release script
|
BABASHKA_PLATFORM: linux # used in release script
|
||||||
BABASHKA_TEST_ENV: native
|
BABASHKA_TEST_ENV: native
|
||||||
BABASHKA_XMX: "-J-Xmx7g"
|
BABASHKA_XMX: "-J-Xmx6500m"
|
||||||
resource_class: large
|
resource_class: large
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
@ -104,9 +104,9 @@ jobs:
|
||||||
name: Download GraalVM
|
name: Download GraalVM
|
||||||
command: |
|
command: |
|
||||||
cd ~
|
cd ~
|
||||||
if ! [ -d graalvm-ce-java8-19.3.2 ]; then
|
if ! [ -d graalvm-ce-java11-20.1.0 ]; then
|
||||||
curl -O -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-19.3.2/graalvm-ce-java8-linux-amd64-19.3.2.tar.gz
|
curl -O -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-20.1.0/graalvm-ce-java11-linux-amd64-20.1.0.tar.gz
|
||||||
tar xzf graalvm-ce-java8-linux-amd64-19.3.2.tar.gz
|
tar xzf graalvm-ce-java11-linux-amd64-20.1.0.tar.gz
|
||||||
fi
|
fi
|
||||||
- run:
|
- run:
|
||||||
name: Build binary
|
name: Build binary
|
||||||
|
|
@ -126,7 +126,7 @@ jobs:
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
paths:
|
||||||
- ~/.m2
|
- ~/.m2
|
||||||
- ~/graalvm-ce-java8-19.3.2
|
- ~/graalvm-ce-java11-20.1.0
|
||||||
key: linux-{{ checksum "project.clj" }}-{{ checksum ".circleci/config.yml" }}
|
key: linux-{{ checksum "project.clj" }}-{{ checksum ".circleci/config.yml" }}
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: /tmp/release
|
path: /tmp/release
|
||||||
|
|
@ -137,15 +137,15 @@ jobs:
|
||||||
./bb .circleci/script/publish_artifact.clj
|
./bb .circleci/script/publish_artifact.clj
|
||||||
linux-static:
|
linux-static:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/clojure:lein-2.8.1
|
- image: circleci/clojure:lein-2.9.1
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
environment:
|
environment:
|
||||||
LEIN_ROOT: "true"
|
LEIN_ROOT: "true"
|
||||||
GRAALVM_HOME: /home/circleci/graalvm-ce-java8-19.3.2
|
GRAALVM_HOME: /home/circleci/graalvm-ce-java11-20.1.0
|
||||||
BABASHKA_PLATFORM: linux-static # used in release script
|
BABASHKA_PLATFORM: linux-static # used in release script
|
||||||
BABASHKA_TEST_ENV: native
|
BABASHKA_TEST_ENV: native
|
||||||
BABASHKA_STATIC: true
|
BABASHKA_STATIC: true
|
||||||
BABASHKA_XMX: "-J-Xmx7g"
|
BABASHKA_XMX: "-J-Xmx6500m"
|
||||||
resource_class: large
|
resource_class: large
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
@ -176,9 +176,9 @@ jobs:
|
||||||
name: Download GraalVM
|
name: Download GraalVM
|
||||||
command: |
|
command: |
|
||||||
cd ~
|
cd ~
|
||||||
if ! [ -d graalvm-ce-java8-19.3.2 ]; then
|
if ! [ -d graalvm-ce-java11-20.1.0 ]; then
|
||||||
curl -O -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-19.3.2/graalvm-ce-java8-linux-amd64-19.3.2.tar.gz
|
curl -O -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-20.1.0/graalvm-ce-java11-linux-amd64-20.1.0.tar.gz
|
||||||
tar xzf graalvm-ce-java8-linux-amd64-19.3.2.tar.gz
|
tar xzf graalvm-ce-java11-linux-amd64-20.1.0.tar.gz
|
||||||
fi
|
fi
|
||||||
- run:
|
- run:
|
||||||
name: Build binary
|
name: Build binary
|
||||||
|
|
@ -198,7 +198,7 @@ jobs:
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
paths:
|
||||||
- ~/.m2
|
- ~/.m2
|
||||||
- ~/graalvm-ce-java8-19.3.2
|
- ~/graalvm-ce-java11-20.1.0
|
||||||
key: linux-{{ checksum "project.clj" }}-{{ checksum ".circleci/config.yml" }}
|
key: linux-{{ checksum "project.clj" }}-{{ checksum ".circleci/config.yml" }}
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: /tmp/release
|
path: /tmp/release
|
||||||
|
|
@ -211,10 +211,10 @@ jobs:
|
||||||
macos:
|
macos:
|
||||||
xcode: "9.0"
|
xcode: "9.0"
|
||||||
environment:
|
environment:
|
||||||
GRAALVM_HOME: /Users/distiller/graalvm-ce-java8-19.3.2/Contents/Home
|
GRAALVM_HOME: /Users/distiller/graalvm-ce-java11-20.1.0/Contents/Home
|
||||||
BABASHKA_PLATFORM: macos # used in release script
|
BABASHKA_PLATFORM: macos # used in release script
|
||||||
BABASHKA_TEST_ENV: native
|
BABASHKA_TEST_ENV: native
|
||||||
BABASHKA_XMX: "-J-Xmx7g"
|
BABASHKA_XMX: "-J-Xmx6500m"
|
||||||
resource_class: large
|
resource_class: large
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
@ -239,19 +239,21 @@ jobs:
|
||||||
command: |
|
command: |
|
||||||
cd ~
|
cd ~
|
||||||
ls -la
|
ls -la
|
||||||
if ! [ -d graalvm-ce-java8-19.3.2 ]; then
|
if ! [ -d graalvm-ce-java11-20.1.0 ]; then
|
||||||
curl -O -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-19.3.2/graalvm-ce-java8-darwin-amd64-19.3.2.tar.gz
|
curl -O -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-20.1.0/graalvm-ce-java11-darwin-amd64-20.1.0.tar.gz
|
||||||
tar xzf graalvm-ce-java8-darwin-amd64-19.3.2.tar.gz
|
tar xzf graalvm-ce-java11-darwin-amd64-20.1.0.tar.gz
|
||||||
fi
|
fi
|
||||||
- run:
|
- run:
|
||||||
name: Build binary
|
name: Build binary
|
||||||
command: |
|
command: |
|
||||||
|
export PATH=$GRAALVM_HOME/bin:$PATH
|
||||||
script/uberjar
|
script/uberjar
|
||||||
script/compile
|
script/compile
|
||||||
no_output_timeout: 30m
|
no_output_timeout: 30m
|
||||||
- run:
|
- run:
|
||||||
name: Run tests
|
name: Run tests
|
||||||
command: |
|
command: |
|
||||||
|
export PATH=$GRAALVM_HOME/bin:$PATH
|
||||||
script/test
|
script/test
|
||||||
script/run_lib_tests
|
script/run_lib_tests
|
||||||
- run:
|
- run:
|
||||||
|
|
@ -261,7 +263,7 @@ jobs:
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
paths:
|
||||||
- ~/.m2
|
- ~/.m2
|
||||||
- ~/graalvm-ce-java8-19.3.2
|
- ~/graalvm-ce-java11-20.1.0
|
||||||
key: mac-{{ checksum "project.clj" }}-{{ checksum ".circleci/config.yml" }}
|
key: mac-{{ checksum "project.clj" }}-{{ checksum ".circleci/config.yml" }}
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: /tmp/release
|
path: /tmp/release
|
||||||
|
|
@ -273,7 +275,7 @@ jobs:
|
||||||
deploy:
|
deploy:
|
||||||
resource_class: large
|
resource_class: large
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/clojure:lein-2.8.1
|
- image: circleci/clojure:lein-2.9.1
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
environment:
|
environment:
|
||||||
LEIN_ROOT: "true"
|
LEIN_ROOT: "true"
|
||||||
|
|
|
||||||
68
.github/workflows/build.yml
vendored
68
.github/workflows/build.yml
vendored
|
|
@ -38,6 +38,23 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-maven-
|
${{ runner.os }}-maven-
|
||||||
|
|
||||||
|
- name: Cache GraalVM
|
||||||
|
uses: actions/cache@v1
|
||||||
|
id: cache-graalvm
|
||||||
|
with:
|
||||||
|
path: ~/graalvm-ce-java11-20.1.0
|
||||||
|
key: ${{ runner.os }}-graalvm-20.1.0
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-graalvm-20.1.0
|
||||||
|
|
||||||
|
- name: Download GraalVM
|
||||||
|
run: |
|
||||||
|
cd ~
|
||||||
|
if ! [ -d graalvm-ce-java11-20.1.0 ]; then
|
||||||
|
curl -O -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-20.1.0/graalvm-ce-java11-linux-amd64-20.1.0.tar.gz
|
||||||
|
tar xzf graalvm-ce-java11-linux-amd64-20.1.0.tar.gz
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Fetch deps
|
- name: Fetch deps
|
||||||
if: steps.cache-deps.outputs.cache-hit != 'true'
|
if: steps.cache-deps.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -45,15 +62,18 @@ jobs:
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
|
export GRAALVM_HOME="$HOME/graalvm-ce-java11-20.1.0"
|
||||||
script/test
|
script/test
|
||||||
|
|
||||||
- name: Test libraries
|
- name: Test libraries
|
||||||
run: |
|
run: |
|
||||||
|
export GRAALVM_HOME="$HOME/graalvm-ce-java11-20.1.0"
|
||||||
sudo script/install-clojure
|
sudo script/install-clojure
|
||||||
script/run_lib_tests
|
script/run_lib_tests
|
||||||
|
|
||||||
- name: Build uberjar
|
- name: Build uberjar
|
||||||
run: |
|
run: |
|
||||||
|
export GRAALVM_HOME="$HOME/graalvm-ce-java11-20.1.0"
|
||||||
script/uberjar
|
script/uberjar
|
||||||
|
|
||||||
- name: Babashka version
|
- name: Babashka version
|
||||||
|
|
@ -109,17 +129,17 @@ jobs:
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
id: cache-graalvm
|
id: cache-graalvm
|
||||||
with:
|
with:
|
||||||
path: ~/graalvm-ce-java8-19.3.2
|
path: ~/graalvm-ce-java11-20.1.0
|
||||||
key: ${{ runner.os }}-graalvm-19.3.2
|
key: ${{ runner.os }}-graalvm-20.1.0
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-graalvm-19.3.2
|
${{ runner.os }}-graalvm-20.1.0
|
||||||
|
|
||||||
- name: Download GraalVM
|
- name: Download GraalVM
|
||||||
run: |
|
run: |
|
||||||
cd ~
|
cd ~
|
||||||
if ! [ -d graalvm-ce-java8-19.3.2 ]; then
|
if ! [ -d graalvm-ce-java11-20.1.0 ]; then
|
||||||
curl -O -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-19.3.2/graalvm-ce-java8-linux-amd64-19.3.2.tar.gz
|
curl -O -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-20.1.0/graalvm-ce-java11-linux-amd64-20.1.0.tar.gz
|
||||||
tar xzf graalvm-ce-java8-linux-amd64-19.3.2.tar.gz
|
tar xzf graalvm-ce-java11-linux-amd64-20.1.0.tar.gz
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Babashka version
|
- name: Babashka version
|
||||||
|
|
@ -132,12 +152,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
export BABASHKA_JAR=babashka-${{ steps.babashka-version.outputs.version }}-standalone.jar
|
export BABASHKA_JAR=babashka-${{ steps.babashka-version.outputs.version }}-standalone.jar
|
||||||
export BABASHKA_XMX="-J-Xmx6g"
|
export BABASHKA_XMX="-J-Xmx6g"
|
||||||
export GRAALVM_HOME="$HOME/graalvm-ce-java8-19.3.2"
|
export GRAALVM_HOME="$HOME/graalvm-ce-java11-20.1.0"
|
||||||
cp babashka-${{ steps.babashka-version.outputs.version }}-reflection.json reflection.json
|
cp babashka-${{ steps.babashka-version.outputs.version }}-reflection.json reflection.json
|
||||||
script/compile
|
script/compile
|
||||||
|
|
||||||
- name: Test binary
|
- name: Test binary
|
||||||
run: |
|
run: |
|
||||||
|
export GRAALVM_HOME="$HOME/graalvm-ce-java11-20.1.0"
|
||||||
BABASHKA_TEST_ENV=native script/test
|
BABASHKA_TEST_ENV=native script/test
|
||||||
|
|
||||||
- name: Install clojure
|
- name: Install clojure
|
||||||
|
|
@ -146,6 +167,7 @@ jobs:
|
||||||
|
|
||||||
- name: Test libraries
|
- name: Test libraries
|
||||||
run: |
|
run: |
|
||||||
|
export GRAALVM_HOME="$HOME/graalvm-ce-java11-20.1.0"
|
||||||
BABASHKA_TEST_ENV=native script/run_lib_tests
|
BABASHKA_TEST_ENV=native script/run_lib_tests
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
|
|
@ -186,17 +208,17 @@ jobs:
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
id: cache-graalvm
|
id: cache-graalvm
|
||||||
with:
|
with:
|
||||||
path: ~/graalvm-ce-java8-19.3.2
|
path: ~/graalvm-ce-java11-20.1.0
|
||||||
key: ${{ runner.os }}-graalvm-19.3.2
|
key: ${{ runner.os }}-graalvm-20.1.0
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-graalvm-19.3.2
|
${{ runner.os }}-graalvm-20.1.0
|
||||||
|
|
||||||
- name: Download GraalVM
|
- name: Download GraalVM
|
||||||
run: |
|
run: |
|
||||||
cd ~
|
cd ~
|
||||||
if ! [ -d graalvm-ce-java8-19.3.2 ]; then
|
if ! [ -d graalvm-ce-java11-20.1.0 ]; then
|
||||||
curl -O -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-19.3.2/graalvm-ce-java8-linux-amd64-19.3.2.tar.gz
|
curl -O -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-20.1.0/graalvm-ce-java11-linux-amd64-20.1.0.tar.gz
|
||||||
tar xzf graalvm-ce-java8-linux-amd64-19.3.2.tar.gz
|
tar xzf graalvm-ce-java11-linux-amd64-20.1.0.tar.gz
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Babashka version
|
- name: Babashka version
|
||||||
|
|
@ -209,7 +231,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
export BABASHKA_JAR=babashka-${{ steps.babashka-version.outputs.version }}-standalone.jar
|
export BABASHKA_JAR=babashka-${{ steps.babashka-version.outputs.version }}-standalone.jar
|
||||||
export BABASHKA_XMX="-J-Xmx6g"
|
export BABASHKA_XMX="-J-Xmx6g"
|
||||||
export GRAALVM_HOME="$HOME/graalvm-ce-java8-19.3.2"
|
export GRAALVM_HOME="$HOME/graalvm-ce-java11-20.1.0"
|
||||||
export BABASHKA_STATIC=true
|
export BABASHKA_STATIC=true
|
||||||
cp babashka-${{ steps.babashka-version.outputs.version }}-reflection.json reflection.json
|
cp babashka-${{ steps.babashka-version.outputs.version }}-reflection.json reflection.json
|
||||||
script/compile
|
script/compile
|
||||||
|
|
@ -217,6 +239,7 @@ jobs:
|
||||||
- name: Test binary
|
- name: Test binary
|
||||||
run: |
|
run: |
|
||||||
./bb '(+ 1 2 3)'
|
./bb '(+ 1 2 3)'
|
||||||
|
export GRAALVM_HOME="$HOME/graalvm-ce-java11-20.1.0"
|
||||||
BABASHKA_TEST_ENV=native script/test
|
BABASHKA_TEST_ENV=native script/test
|
||||||
|
|
||||||
- name: Install clojure
|
- name: Install clojure
|
||||||
|
|
@ -225,6 +248,7 @@ jobs:
|
||||||
|
|
||||||
- name: Test libraries
|
- name: Test libraries
|
||||||
run: |
|
run: |
|
||||||
|
export GRAALVM_HOME="$HOME/graalvm-ce-java11-20.1.0"
|
||||||
BABASHKA_TEST_ENV=native script/run_lib_tests
|
BABASHKA_TEST_ENV=native script/run_lib_tests
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
|
|
@ -256,17 +280,17 @@ jobs:
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
id: cache-graalvm
|
id: cache-graalvm
|
||||||
with:
|
with:
|
||||||
path: ~/graalvm-ce-java8-19.3.2
|
path: ~/graalvm-ce-java11-20.1.0
|
||||||
key: ${{ runner.os }}-graalvm-19.3.2
|
key: ${{ runner.os }}-graalvm-20.1.0
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-graalvm-19.3.2
|
${{ runner.os }}-graalvm-20.1.0
|
||||||
|
|
||||||
- name: Download GraalVM
|
- name: Download GraalVM
|
||||||
run: |
|
run: |
|
||||||
cd ~
|
cd ~
|
||||||
if ! [ -d graalvm-ce-java8-19.3.2 ]; then
|
if ! [ -d graalvm-ce-java11-20.1.0 ]; then
|
||||||
curl -O -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-19.3.2/graalvm-ce-java8-darwin-amd64-19.3.2.tar.gz
|
curl -O -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-20.1.0/graalvm-ce-java11-darwin-amd64-20.1.0.tar.gz
|
||||||
tar xzf graalvm-ce-java8-darwin-amd64-19.3.2.tar.gz
|
tar xzf graalvm-ce-java11-darwin-amd64-20.1.0.tar.gz
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Babashka version
|
- name: Babashka version
|
||||||
|
|
@ -279,17 +303,19 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
export BABASHKA_JAR=babashka-${{ steps.babashka-version.outputs.version }}-standalone.jar
|
export BABASHKA_JAR=babashka-${{ steps.babashka-version.outputs.version }}-standalone.jar
|
||||||
export BABASHKA_XMX="-J-Xmx6g"
|
export BABASHKA_XMX="-J-Xmx6g"
|
||||||
export GRAALVM_HOME="$HOME/graalvm-ce-java8-19.3.2/Contents/Home"
|
export GRAALVM_HOME="$HOME/graalvm-ce-java11-20.1.0/Contents/Home"
|
||||||
cp babashka-${{ steps.babashka-version.outputs.version }}-reflection.json reflection.json
|
cp babashka-${{ steps.babashka-version.outputs.version }}-reflection.json reflection.json
|
||||||
script/compile
|
script/compile
|
||||||
|
|
||||||
- name: Test binary
|
- name: Test binary
|
||||||
run: |
|
run: |
|
||||||
|
export GRAALVM_HOME="$HOME/graalvm-ce-java11-20.1.0/Contents/Home"
|
||||||
sudo script/install-leiningen
|
sudo script/install-leiningen
|
||||||
BABASHKA_TEST_ENV=native script/test
|
BABASHKA_TEST_ENV=native script/test
|
||||||
|
|
||||||
- name: Test libraries
|
- name: Test libraries
|
||||||
run: |
|
run: |
|
||||||
|
export GRAALVM_HOME="$HOME/graalvm-ce-java11-20.1.0/Contents/Home"
|
||||||
sudo script/install-clojure
|
sudo script/install-clojure
|
||||||
BABASHKA_TEST_ENV=native script/run_lib_tests
|
BABASHKA_TEST_ENV=native script/run_lib_tests
|
||||||
|
|
||||||
|
|
|
||||||
12
appveyor.yml
12
appveyor.yml
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
version: "v-{build}"
|
version: "v-{build}"
|
||||||
|
|
||||||
image: Visual Studio 2015
|
image: Visual Studio 2017
|
||||||
|
|
||||||
clone_folder: C:\projects\babashka
|
clone_folder: C:\projects\babashka
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
GRAALVM_HOME: C:\projects\babashka\graalvm\graalvm-ce-java8-19.3.2
|
GRAALVM_HOME: C:\projects\babashka\graalvm\graalvm-ce-java11-20.1.0
|
||||||
BABASHKA_XMX: "-J-Xmx5g"
|
BABASHKA_XMX: "-J-Xmx5g"
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
|
|
@ -39,12 +39,12 @@ build_script:
|
||||||
|
|
||||||
# call script/test.bat
|
# call script/test.bat
|
||||||
|
|
||||||
|
# see https://github.com/quarkusio/quarkus/pull/7663
|
||||||
|
|
||||||
- cmd: >-
|
- cmd: >-
|
||||||
choco install windows-sdk-7.1
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
|
||||||
|
|
||||||
call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd"
|
powershell -Command "if (Test-Path('graalvm')) { return } else { (New-Object Net.WebClient).DownloadFile('https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-20.1.0/graalvm-ce-java11-windows-amd64-20.1.0.zip', 'graalvm.zip') }"
|
||||||
|
|
||||||
powershell -Command "if (Test-Path('graalvm')) { return } else { (New-Object Net.WebClient).DownloadFile('https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-19.3.2/graalvm-ce-java8-windows-amd64-19.3.2.zip', 'graalvm.zip') }"
|
|
||||||
|
|
||||||
powershell -Command "if (Test-Path('graalvm')) { return } else { Expand-Archive graalvm.zip graalvm }"
|
powershell -Command "if (Test-Path('graalvm')) { return } else { Expand-Archive graalvm.zip graalvm }"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,11 +17,11 @@
|
||||||
[org.clojure/tools.reader "1.3.2"]
|
[org.clojure/tools.reader "1.3.2"]
|
||||||
[borkdude/edamame "0.0.11-alpha.12"]
|
[borkdude/edamame "0.0.11-alpha.12"]
|
||||||
[borkdude/graal.locking "0.0.2"]
|
[borkdude/graal.locking "0.0.2"]
|
||||||
[borkdude/sci.impl.reflector "0.0.1"]
|
|
||||||
[org.clojure/tools.cli "1.0.194"]
|
[org.clojure/tools.cli "1.0.194"]
|
||||||
[cheshire "5.10.0"]
|
[cheshire "5.10.0"]
|
||||||
[fipp "0.6.22"]
|
[fipp "0.6.22"]
|
||||||
[nrepl/bencode "1.1.0"]]
|
[nrepl/bencode "1.1.0"]
|
||||||
|
[borkdude/sci.impl.reflector "0.0.1-java11"]]
|
||||||
:profiles {:feature/xml {:source-paths ["feature-xml"]
|
:profiles {:feature/xml {:source-paths ["feature-xml"]
|
||||||
:dependencies [[org.clojure/data.xml "0.2.0-alpha6"]]}
|
:dependencies [[org.clojure/data.xml "0.2.0-alpha6"]]}
|
||||||
:feature/yaml {:source-paths ["feature-yaml"]
|
:feature/yaml {:source-paths ["feature-yaml"]
|
||||||
|
|
@ -54,6 +54,7 @@
|
||||||
"-Dclojure.spec.skip-macros=true"]
|
"-Dclojure.spec.skip-macros=true"]
|
||||||
:main babashka.main
|
:main babashka.main
|
||||||
:aot :all}
|
:aot :all}
|
||||||
|
:native-image {:dependencies [[borkdude/clj-reflector-graal-java11-fix "0.0.1-graalvm-20.1.0"]]}
|
||||||
:reflection {:main babashka.impl.classes/generate-reflection-file}}
|
:reflection {:main babashka.impl.classes/generate-reflection-file}}
|
||||||
:aliases {"bb" ["with-profile" "test" "run" "-m" "babashka.main"]}
|
:aliases {"bb" ["with-profile" "test" "run" "-m" "babashka.main"]}
|
||||||
:deploy-repositories [["clojars" {:url "https://clojars.org/repo"
|
:deploy-repositories [["clojars" {:url "https://clojars.org/repo"
|
||||||
|
|
|
||||||
2
sci
2
sci
|
|
@ -1 +1 @@
|
||||||
Subproject commit 935e8b5ff402cf9163f4a7640aa5cbe894a6e31c
|
Subproject commit f1d4264cfa409ae31fd79e205e579bbcbf7ca7e0
|
||||||
|
|
@ -1,16 +1,16 @@
|
||||||
#!/usr/bin/env bb
|
#!/usr/bin/env bb
|
||||||
|
|
||||||
;; NOTE
|
;; NOTE
|
||||||
;;
|
;;
|
||||||
;; For more information on the current scene on support for
|
;; For more information on the current scene on support for
|
||||||
;; particular GraalVM versions, look here: https://www.graalvm.org/downloads/
|
;; particular GraalVM versions, look here: https://www.graalvm.org/downloads/
|
||||||
;;
|
;;
|
||||||
;; There are 4 CE(Community Editions) being supported by GraalVM
|
;; There are 4 CE(Community Editions) being supported by GraalVM
|
||||||
;; GraalVM Community Edition 20.1.0 based on OpenJDK 8u252
|
;; GraalVM Community Edition 20.1.0 based on OpenJDK 8u252
|
||||||
;; GraalVM Community Edition 20.1.0 based on OpenJDK 11.0.7
|
;; GraalVM Community Edition 20.1.0 based on OpenJDK 11.0.7
|
||||||
;; GraalVM Community Edition 19.3.2 based on OpenJDK 8u252
|
;; GraalVM Community Edition 19.3.2 based on OpenJDK 8u252
|
||||||
;; GraalVM Community Edition 19.3.2 based on OpenJDK 11.0.7
|
;; GraalVM Community Edition 19.3.2 based on OpenJDK 11.0.7
|
||||||
;;
|
;;
|
||||||
;; Currently we use GraalVM java8-19.3.2
|
;; Currently we use GraalVM java8-19.3.2
|
||||||
|
|
||||||
(ns bump-graal-version
|
(ns bump-graal-version
|
||||||
|
|
@ -43,9 +43,9 @@
|
||||||
|
|
||||||
;; We might have to keep changing these from
|
;; We might have to keep changing these from
|
||||||
;; time to time whenever the version is bumped
|
;; time to time whenever the version is bumped
|
||||||
;;
|
;;
|
||||||
;; OR
|
;; OR
|
||||||
;;
|
;;
|
||||||
;; We could have them as environment variables
|
;; We could have them as environment variables
|
||||||
(def current-graal-version "19.3.2")
|
(def current-graal-version "19.3.2")
|
||||||
(def current-java-version "java8")
|
(def current-java-version "java8")
|
||||||
|
|
@ -71,12 +71,12 @@
|
||||||
|
|
||||||
(defn bump-current
|
(defn bump-current
|
||||||
[current new]
|
[current new]
|
||||||
(doseq [file files-to-edit]
|
(doseq [file files-to-edit]
|
||||||
(let [exec-res (replace-current file current new)]
|
(let [exec-res (replace-current file current new)]
|
||||||
(try (spit file exec-res)
|
(try (spit file exec-res)
|
||||||
(catch Exception e (str "There was an error: " (.getMessage e)))
|
(catch Exception e (str "There was an error: " (.getMessage e)))
|
||||||
(finally
|
(finally
|
||||||
(println "Done with : " file))))))
|
(println "Done with : " file))))))
|
||||||
|
|
||||||
(defn show-error
|
(defn show-error
|
||||||
[err-version]
|
[err-version]
|
||||||
|
|
|
||||||
|
|
@ -22,11 +22,16 @@ fi
|
||||||
"$GRAALVM_HOME/bin/gu" install native-image
|
"$GRAALVM_HOME/bin/gu" install native-image
|
||||||
|
|
||||||
export JAVA_HOME=$GRAALVM_HOME
|
export JAVA_HOME=$GRAALVM_HOME
|
||||||
|
export PATH=$GRAALVM_HOME/bin:$PATH
|
||||||
|
|
||||||
SVM_JAR=$(find "$GRAALVM_HOME" | grep svm.jar)
|
SVM_JAR=$(find "$GRAALVM_HOME" | grep svm.jar)
|
||||||
"$GRAALVM_HOME/bin/javac" -cp "$SVM_JAR" resources/CutOffCoreServicesDependencies.java
|
"$GRAALVM_HOME/bin/javac" -cp "$SVM_JAR" resources/CutOffCoreServicesDependencies.java
|
||||||
|
|
||||||
BABASHKA_FEATURE_HSQLDB=${BABASHKA_FEATURE_HSQLDB:-}
|
if [ -z "$BABASHKA_JAR" ]; then
|
||||||
|
lein with-profiles +reflection,+native-image "do" run
|
||||||
|
lein "do" clean, uberjar
|
||||||
|
BABASHKA_JAR=${BABASHKA_JAR:-"target/babashka-$BABASHKA_VERSION-standalone.jar"}
|
||||||
|
fi
|
||||||
|
|
||||||
BABASHKA_BINARY=${BABASHKA_BINARY:-"bb"}
|
BABASHKA_BINARY=${BABASHKA_BINARY:-"bb"}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ if "%BABASHKA_XMX%"=="" (
|
||||||
)
|
)
|
||||||
|
|
||||||
set JAVA_HOME=%GRAALVM_HOME%
|
set JAVA_HOME=%GRAALVM_HOME%
|
||||||
set PATH=%PATH%;%GRAALVM_HOME%\bin
|
set PATH=%GRAALVM_HOME%\bin;%PATH%
|
||||||
|
|
||||||
set /P BABASHKA_VERSION=< resources\BABASHKA_VERSION
|
set /P BABASHKA_VERSION=< resources\BABASHKA_VERSION
|
||||||
echo Building Babashka %BABASHKA_VERSION%
|
echo Building Babashka %BABASHKA_VERSION%
|
||||||
|
|
@ -21,6 +21,8 @@ echo Building Babashka %BABASHKA_VERSION%
|
||||||
Rem the --no-server option is not supported in GraalVM Windows.
|
Rem the --no-server option is not supported in GraalVM Windows.
|
||||||
Rem -H:EnableURLProtocols=jar,http,https is also not supported.
|
Rem -H:EnableURLProtocols=jar,http,https is also not supported.
|
||||||
|
|
||||||
|
call %GRAALVM_HOME%\bin\gu.cmd install native-image
|
||||||
|
|
||||||
call %GRAALVM_HOME%\bin\native-image.cmd ^
|
call %GRAALVM_HOME%\bin\native-image.cmd ^
|
||||||
"-jar" "target/babashka-%BABASHKA_VERSION%-standalone.jar" ^
|
"-jar" "target/babashka-%BABASHKA_VERSION%-standalone.jar" ^
|
||||||
"-H:Name=bb" ^
|
"-H:Name=bb" ^
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,12 @@
|
||||||
|
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
|
if [ "$GRAALVM_HOME" != "" ]
|
||||||
|
then
|
||||||
|
export JAVA_HOME=$GRAALVM_HOME
|
||||||
|
export PATH=$GRAALVM_HOME/bin:$PATH
|
||||||
|
fi
|
||||||
|
|
||||||
script/lib_tests/clj_http_lite_test
|
script/lib_tests/clj_http_lite_test
|
||||||
script/lib_tests/deps_clj_test
|
script/lib_tests/deps_clj_test
|
||||||
script/lib_tests/spartan_spec_test
|
script/lib_tests/spartan_spec_test
|
||||||
|
|
|
||||||
18
script/test
18
script/test
|
|
@ -1,18 +1,26 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [ "$GRAALVM_HOME" != "" ]
|
||||||
|
then
|
||||||
|
export JAVA_HOME=$GRAALVM_HOME
|
||||||
|
export PATH=$GRAALVM_HOME/bin:$PATH
|
||||||
|
fi
|
||||||
|
|
||||||
|
java -version
|
||||||
|
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
BABASHKA_PRELOADS=""
|
BABASHKA_PRELOADS=""
|
||||||
BABASHKA_CLASSPATH=""
|
BABASHKA_CLASSPATH=""
|
||||||
echo "running tests part 1"
|
echo "running tests part 1"
|
||||||
lein test "$@"
|
lein test "$@"
|
||||||
|
|
||||||
BABASHKA_PRELOADS='(defn __bb__foo [] "foo") (defn __bb__bar [] "bar")'
|
export BABASHKA_PRELOADS='(defn __bb__foo [] "foo") (defn __bb__bar [] "bar")'
|
||||||
BABASHKA_PRELOADS_TEST=true
|
export BABASHKA_PRELOADS_TEST=true
|
||||||
echo "running tests part 2"
|
echo "running tests part 2"
|
||||||
lein test :only babashka.main-test/preloads-test
|
lein test :only babashka.main-test/preloads-test
|
||||||
|
|
||||||
BABASHKA_PRELOADS="(require '[env-ns])"
|
export BABASHKA_PRELOADS="(require '[env-ns])"
|
||||||
BABASHKA_CLASSPATH_TEST=true
|
export BABASHKA_CLASSPATH_TEST=true
|
||||||
BABASHKA_CLASSPATH="test-resources/babashka/src_for_classpath_test/env"
|
export BABASHKA_CLASSPATH="test-resources/babashka/src_for_classpath_test/env"
|
||||||
echo "running tests part 3"
|
echo "running tests part 3"
|
||||||
lein test :only babashka.classpath-test/classpath-env-test
|
lein test :only babashka.classpath-test/classpath-env-test
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,13 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [ "$GRAALVM_HOME" != "" ]
|
||||||
|
then
|
||||||
|
export JAVA_HOME=$GRAALVM_HOME
|
||||||
|
export PATH=$GRAALVM_HOME/bin:$PATH
|
||||||
|
fi
|
||||||
|
|
||||||
|
java -version
|
||||||
|
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
if [ "$BABASHKA_LEAN" = "true" ]
|
if [ "$BABASHKA_LEAN" = "true" ]
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ if "%GRAALVM_HOME%"=="" (
|
||||||
)
|
)
|
||||||
|
|
||||||
set JAVA_HOME=%GRAALVM_HOME%
|
set JAVA_HOME=%GRAALVM_HOME%
|
||||||
set PATH=%PATH%;%GRAALVM_HOME%\bin
|
set PATH=%GRAALVM_HOME%\bin;%PATH%
|
||||||
|
|
||||||
set BABASHKA_LEIN_PROFILES=+uberjar
|
set BABASHKA_LEIN_PROFILES=+uberjar
|
||||||
|
|
||||||
|
|
@ -69,5 +69,5 @@ call lein with-profiles %BABASHKA_LEIN_PROFILES% bb "(+ 1 2 3)"
|
||||||
call lein with-profiles %BABASHKA_LEIN_PROFILES%,+reflection,-uberjar do run
|
call lein with-profiles %BABASHKA_LEIN_PROFILES%,+reflection,-uberjar do run
|
||||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||||
|
|
||||||
call lein with-profiles "%BABASHKA_LEIN_PROFILES%" do clean, uberjar
|
call lein with-profiles "%BABASHKA_LEIN_PROFILES%,+native-image" do clean, uberjar
|
||||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||||
|
|
|
||||||
|
|
@ -72,10 +72,6 @@
|
||||||
{:name "toURI"}]}
|
{:name "toURI"}]}
|
||||||
java.util.Arrays
|
java.util.Arrays
|
||||||
{:methods [{:name "copyOf"}]}}
|
{:methods [{:name "copyOf"}]}}
|
||||||
features/xml? (assoc `com.sun.xml.internal.stream.XMLInputFactoryImpl
|
|
||||||
{:methods [{:name "<init>" :parameterTypes []}]}
|
|
||||||
`com.sun.xml.internal.stream.XMLOutputFactoryImpl
|
|
||||||
{:methods [{:name "<init>" :parameterTypes []}]})
|
|
||||||
features/hsqldb? (assoc `org.hsqldb.dbinfo.DatabaseInformationFull
|
features/hsqldb? (assoc `org.hsqldb.dbinfo.DatabaseInformationFull
|
||||||
{:methods [{:name "<init>"
|
{:methods [{:name "<init>"
|
||||||
:parameterTypes ["org.hsqldb.Database"]}]}
|
:parameterTypes ["org.hsqldb.Database"]}]}
|
||||||
|
|
@ -285,6 +281,6 @@
|
||||||
(sort-by :name)
|
(sort-by :name)
|
||||||
(vec)))
|
(vec)))
|
||||||
|
|
||||||
(public-declared-method-names java.lang.UNIXProcess)
|
|
||||||
(public-declared-method-names java.net.URL)
|
(public-declared-method-names java.net.URL)
|
||||||
|
(public-declared-method-names java.util.Properties)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue