diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index bc4cd9b0f71ab3..c056944e8d92c3 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -108,7 +108,7 @@ jobs: build-proxy-native-image: if: github.repository == 'apache/shardingsphere' name: Build GraalVM Native Image - timeout-minutes: 60 + timeout-minutes: 90 permissions: contents: read packages: write @@ -121,9 +121,14 @@ jobs: with: java-version: '17.0.8' distribution: 'graalvm-community' - components: 'espresso,native-image' github-token: ${{ secrets.GITHUB_TOKEN }} - cache: 'maven' + - uses: actions/cache@v3 + with: + path: ~/.m2/repository + key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache-${{ github.sha }} + restore-keys: | + ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache- + ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party- - uses: docker/login-action@v2 with: registry: ${{ env.HUB }} diff --git a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md index ef8d3a0ec7087a..8de2525a7812fe 100644 --- a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md +++ b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md @@ -46,7 +46,10 @@ services: ## 前提条件 -1. 根据 https://www.graalvm.org/downloads/ 要求安装和配置 JDK 17 对应的 `GraalVM Community Edition` 或 `Oracle GraalVM`。或者使用 `SDKMAN!`。 +1. 根据 https://www.graalvm.org/downloads/ 要求安装和配置 JDK 17 对应的 `GraalVM Community Edition` 或 `Oracle GraalVM` + 。或者使用 `SDKMAN!` + 。如果你希望使用携带了 [GraalVM Free Terms and Conditions license](https://www.oracle.com/downloads/licenses/graal-free-license.html) + 的 `Oracle GraalVM`,下面的命令应更改为 `sdk install java 17.0.8-graal`。 ```shell sdk install java 17.0.8-graalce diff --git a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md index 53ca4c40d4f08e..f1163508b6bd6f 100644 --- a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md +++ b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md @@ -52,7 +52,10 @@ services: ## Premise -1. Install and configure `GraalVM Community Edition` or `Oracle GraalVM` for JDK 17 according to https://www.graalvm.org/downloads/. Or use `SDKMAN!`. +1. Install and configure `GraalVM Community Edition` or `Oracle GraalVM` for JDK 17 according + to https://www.graalvm.org/downloads/. Or use `SDKMAN!`. If you wish to use `Oracle GraalVM` + with [GraalVM Free Terms and Conditions license](https://www.oracle.com/downloads/licenses/graal-free-license.html), + the following command should be changed to `sdk install java 17.0.8-graal`。 ```shell sdk install java 17.0.8-graalce