diff --git a/.github/workflows/codeql-analysis-java.yml b/.github/workflows/codeql-analysis-java.yml index 0437530a916..107efb92286 100644 --- a/.github/workflows/codeql-analysis-java.yml +++ b/.github/workflows/codeql-analysis-java.yml @@ -34,7 +34,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up JDK 11 uses: actions/setup-java@v3 diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index 5aca115af61..1ccd4dfd783 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -20,13 +20,14 @@ jobs: operating-system: [ ubuntu-18.04, macos-latest ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 # Enable gradle cache: https://github.com/actions/cache/blob/master/examples.md#java---gradle - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} @@ -68,13 +69,14 @@ jobs: if: github.repository == 'deepjavalibrary/djl' runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 # Enable gradle cache: https://github.com/actions/cache/blob/master/examples.md#java---gradle - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 979496c5469..25cfba51fb6 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -16,8 +16,9 @@ jobs: runs-on: ubuntu-18.04 steps: - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - name: Set up Python3 uses: actions/setup-python@v1 @@ -33,7 +34,7 @@ jobs: cd IJava/ ./gradlew installKernel - name: checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: add mybinder link run: | python3 tools/scripts/add_online_runner.py diff --git a/.github/workflows/native_build_mxnet_osx.yml b/.github/workflows/native_build_mxnet_osx.yml index 9819ed38b29..d587c09a666 100644 --- a/.github/workflows/native_build_mxnet_osx.yml +++ b/.github/workflows/native_build_mxnet_osx.yml @@ -9,7 +9,7 @@ jobs: steps: - name: Checkout Apache MXNet repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: apache/incubator-mxnet ref: 1.9.1 diff --git a/.github/workflows/native_jni_s3_dlr.yml b/.github/workflows/native_jni_s3_dlr.yml index 7c9dd7c9853..2334bdb9635 100644 --- a/.github/workflows/native_jni_s3_dlr.yml +++ b/.github/workflows/native_jni_s3_dlr.yml @@ -7,12 +7,13 @@ jobs: build-dlr-jni-cpu: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} @@ -46,12 +47,13 @@ jobs: yum -y install patch cmake3 ln -sf /usr/bin/cmake3 /usr/bin/cmake pip3 install awscli --upgrade - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} diff --git a/.github/workflows/native_jni_s3_paddle.yml b/.github/workflows/native_jni_s3_paddle.yml index daccdfe2e59..45e6d0fc491 100644 --- a/.github/workflows/native_jni_s3_paddle.yml +++ b/.github/workflows/native_jni_s3_paddle.yml @@ -14,12 +14,13 @@ jobs: operating-system: [ macos-latest, windows-latest ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} @@ -53,12 +54,13 @@ jobs: yum -y install patch cmake3 ln -sf /usr/bin/cmake3 /usr/bin/cmake pip3 install awscli --upgrade - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} @@ -79,7 +81,7 @@ jobs: runs-on: ubuntu-latest needs: [ build-paddle-jni-cpu, build-paddle-jni-linux ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Download compiledJNI Mac uses: actions/download-artifact@v1 with: diff --git a/.github/workflows/native_jni_s3_pytorch.yml b/.github/workflows/native_jni_s3_pytorch.yml index ef942fe17b1..be567afbaad 100644 --- a/.github/workflows/native_jni_s3_pytorch.yml +++ b/.github/workflows/native_jni_s3_pytorch.yml @@ -15,12 +15,13 @@ jobs: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} @@ -53,12 +54,13 @@ jobs: runs-on: ubuntu-latest container: nvidia/cuda:11.3.1-cudnn8-devel-ubuntu18.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} @@ -111,12 +113,13 @@ jobs: yum -y install devtoolset-7 rh-git218 patch cmake3 ln -s /usr/bin/cmake3 /usr/bin/cmake pip3 install awscli --upgrade - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} @@ -150,12 +153,13 @@ jobs: if: github.repository == 'deepjavalibrary/djl' runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} @@ -208,7 +212,7 @@ jobs: java-version: 11 distribution: corretto architecture: aarch64 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} @@ -265,7 +269,7 @@ jobs: yum -y install patch git cmake3 python3-devel java-11-amazon-corretto ln -sf /usr/bin/cmake3 /usr/bin/cmake pip3 install awscli --upgrade - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Release JNI prep run: | export JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.aarch64 diff --git a/.github/workflows/native_jni_s3_pytorch_android.yml b/.github/workflows/native_jni_s3_pytorch_android.yml index bee17c1639d..93da7f4db15 100644 --- a/.github/workflows/native_jni_s3_pytorch_android.yml +++ b/.github/workflows/native_jni_s3_pytorch_android.yml @@ -12,12 +12,13 @@ jobs: NDK_VERSION: "21.1.6352462" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} diff --git a/.github/workflows/native_jni_s3_tensorrt.yml b/.github/workflows/native_jni_s3_tensorrt.yml index ff34ed63bcb..874c8c16d99 100644 --- a/.github/workflows/native_jni_s3_tensorrt.yml +++ b/.github/workflows/native_jni_s3_tensorrt.yml @@ -10,12 +10,13 @@ jobs: steps: - name: Install Environment run: pip3 install awscli --upgrade - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} diff --git a/.github/workflows/native_publish_dlr.yml b/.github/workflows/native_publish_dlr.yml index be7ac03adca..04e1ed779e0 100644 --- a/.github/workflows/native_publish_dlr.yml +++ b/.github/workflows/native_publish_dlr.yml @@ -13,13 +13,14 @@ jobs: runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 # Enable gradle cache: https://github.com/actions/cache/blob/master/examples.md#java---gradle - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} diff --git a/.github/workflows/native_publish_mxnet.yml b/.github/workflows/native_publish_mxnet.yml index af2b91a0a95..3b86e40c9d2 100644 --- a/.github/workflows/native_publish_mxnet.yml +++ b/.github/workflows/native_publish_mxnet.yml @@ -13,13 +13,14 @@ jobs: runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 # Enable gradle cache: https://github.com/actions/cache/blob/master/examples.md#java---gradle - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} diff --git a/.github/workflows/native_publish_paddle.yml b/.github/workflows/native_publish_paddle.yml index b42fe94c8b4..601ef51d4c0 100644 --- a/.github/workflows/native_publish_paddle.yml +++ b/.github/workflows/native_publish_paddle.yml @@ -13,13 +13,14 @@ jobs: runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 # Enable gradle cache: https://github.com/actions/cache/blob/master/examples.md#java---gradle - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} diff --git a/.github/workflows/native_publish_pytorch.yml b/.github/workflows/native_publish_pytorch.yml index 2ba5e67d6b9..f3ef6496a44 100644 --- a/.github/workflows/native_publish_pytorch.yml +++ b/.github/workflows/native_publish_pytorch.yml @@ -13,13 +13,14 @@ jobs: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 # Enable gradle cache: https://github.com/actions/cache/blob/master/examples.md#java---gradle - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} diff --git a/.github/workflows/native_publish_tensorflow.yml b/.github/workflows/native_publish_tensorflow.yml index 77b9b66d8d8..54255bc4873 100644 --- a/.github/workflows/native_publish_tensorflow.yml +++ b/.github/workflows/native_publish_tensorflow.yml @@ -13,13 +13,14 @@ jobs: runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 # Enable gradle cache: https://github.com/actions/cache/blob/master/examples.md#java---gradle - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} diff --git a/.github/workflows/native_publish_tflite.yml b/.github/workflows/native_publish_tflite.yml index ee7c48be011..75c02cd03c5 100644 --- a/.github/workflows/native_publish_tflite.yml +++ b/.github/workflows/native_publish_tflite.yml @@ -13,13 +13,14 @@ jobs: runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 # Enable gradle cache: https://github.com/actions/cache/blob/master/examples.md#java---gradle - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} diff --git a/.github/workflows/native_s3_dlr.yml b/.github/workflows/native_s3_dlr.yml index 5f3cf838925..5395ae00826 100644 --- a/.github/workflows/native_s3_dlr.yml +++ b/.github/workflows/native_s3_dlr.yml @@ -7,17 +7,18 @@ jobs: build-osx: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - name: Get DLR_VERSION run: | DLR_VERSION="$(cat gradle.properties | awk -F '=' '/dlr_version/ {print $2}')" echo "DLR_VERSION=${DLR_VERSION}" >> $GITHUB_ENV - name: Checkout DLR repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: neo-ai/neo-ai-dlr ref: v${{ env.DLR_VERSION }} @@ -52,17 +53,18 @@ jobs: yum -y install patch cmake3 ln -sf /usr/bin/cmake3 /usr/bin/cmake pip3 install awscli --upgrade - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - name: Get DLR_VERSION run: | DLR_VERSION="$(cat gradle.properties | awk -F '=' '/dlr_version/ {print $2}')" echo "DLR_VERSION=${DLR_VERSION}" >> $GITHUB_ENV - name: Checkout DLR repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: neo-ai/neo-ai-dlr ref: v${{ env.DLR_VERSION }} diff --git a/.github/workflows/native_s3_fasttext.yml b/.github/workflows/native_s3_fasttext.yml index 46eea773cc4..c6a4acec353 100644 --- a/.github/workflows/native_s3_fasttext.yml +++ b/.github/workflows/native_s3_fasttext.yml @@ -7,12 +7,13 @@ jobs: build-fasttext-jni-osx: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} @@ -44,12 +45,13 @@ jobs: yum -y install patch cmake3 ln -sf /usr/bin/cmake3 /usr/bin/cmake pip3 install awscli --upgrade - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} diff --git a/.github/workflows/native_s3_huggingface.yml b/.github/workflows/native_s3_huggingface.yml index ce7f08a10ac..924482a5039 100644 --- a/.github/workflows/native_s3_huggingface.yml +++ b/.github/workflows/native_s3_huggingface.yml @@ -7,15 +7,16 @@ jobs: build-tokenizers-jni-osx: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - uses: actions-rs/toolchain@v1 with: toolchain: stable - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} @@ -52,12 +53,13 @@ jobs: - uses: actions-rs/toolchain@v1 with: toolchain: stable - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} @@ -90,12 +92,13 @@ jobs: - uses: actions-rs/toolchain@v1 with: toolchain: stable - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} @@ -133,7 +136,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: toolchain: stable - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} @@ -189,14 +192,14 @@ jobs: - uses: actions-rs/toolchain@v1 with: toolchain: stable - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 uses: actions/setup-java@v3 with: java-version: 11 distribution: corretto architecture: aarch64 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} diff --git a/.github/workflows/native_s3_pytorch.yml b/.github/workflows/native_s3_pytorch.yml index 038d63117fa..d0ac688158b 100644 --- a/.github/workflows/native_s3_pytorch.yml +++ b/.github/workflows/native_s3_pytorch.yml @@ -7,13 +7,14 @@ jobs: build: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 # Enable gradle cache: https://github.com/actions/cache/blob/master/examples.md#java---gradle - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} diff --git a/.github/workflows/native_s3_pytorch_android.yml b/.github/workflows/native_s3_pytorch_android.yml index e895cf14956..9eed27affcc 100644 --- a/.github/workflows/native_s3_pytorch_android.yml +++ b/.github/workflows/native_s3_pytorch_android.yml @@ -13,10 +13,11 @@ jobs: PYTORCH_VERSION: "1.12.1" NDK_VERSION: "21.1.6352462" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - name: Set up Python3 uses: actions/setup-python@v3 diff --git a/.github/workflows/native_s3_sentencepiece.yml b/.github/workflows/native_s3_sentencepiece.yml index 300dc08d7c6..cb03a7783cc 100644 --- a/.github/workflows/native_s3_sentencepiece.yml +++ b/.github/workflows/native_s3_sentencepiece.yml @@ -7,12 +7,13 @@ jobs: build-sentencepiece-jni-osx: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} @@ -45,12 +46,13 @@ jobs: yum -y install patch cmake3 ln -sf /usr/bin/cmake3 /usr/bin/cmake pip3 install awscli --upgrade - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} @@ -75,12 +77,13 @@ jobs: build-sentencepiece-jni-windows: runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} diff --git a/.github/workflows/native_s3_tensorflow.yml b/.github/workflows/native_s3_tensorflow.yml index 675794d332f..6e7909b1bc2 100644 --- a/.github/workflows/native_s3_tensorflow.yml +++ b/.github/workflows/native_s3_tensorflow.yml @@ -7,13 +7,14 @@ jobs: upload: runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 # Enable gradle cache: https://github.com/actions/cache/blob/master/examples.md#java---gradle - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} diff --git a/.github/workflows/native_s3_tflite.yml b/.github/workflows/native_s3_tflite.yml index d31ff2b7d03..847606e9932 100644 --- a/.github/workflows/native_s3_tflite.yml +++ b/.github/workflows/native_s3_tflite.yml @@ -7,19 +7,20 @@ jobs: build-osx: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Get TFLITE_VERSION run: | TFLITE_VERSION="$(cat gradle.properties | awk -F '=' '/tflite_version/ {print $2}')" echo "TFLITE_VERSION=${TFLITE_VERSION}" >> $GITHUB_ENV - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: repository: tensorflow/tensorflow ref: v${{ env.TFLITE_VERSION }} submodules: 'recursive' - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - name: Set up Python3 uses: actions/setup-python@v2 @@ -56,12 +57,12 @@ jobs: ln -sf /usr/bin/cmake3 /usr/bin/cmake pip3 install awscli --upgrade pip3 install numpy --upgrade - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Get TFLITE_VERSION run: | TFLITE_VERSION="$(cat gradle.properties | awk -F '=' '/tflite_version/ {print $2}')" echo "TFLITE_VERSION=${TFLITE_VERSION}" >> $GITHUB_ENV - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: repository: tensorflow/tensorflow ref: v${{ env.TFLITE_VERSION }} diff --git a/.github/workflows/nightly_android.yml b/.github/workflows/nightly_android.yml index 21e29247be6..541d2ba9275 100644 --- a/.github/workflows/nightly_android.yml +++ b/.github/workflows/nightly_android.yml @@ -16,8 +16,9 @@ jobs: steps: - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 - name: Gradle cache uses: gradle/gradle-build-action@v2 diff --git a/.github/workflows/nightly_publish.yml b/.github/workflows/nightly_publish.yml index e60b98e7244..4f932a4d010 100644 --- a/.github/workflows/nightly_publish.yml +++ b/.github/workflows/nightly_publish.yml @@ -19,13 +19,14 @@ jobs: operating-system: [ macos-latest, ubuntu-18.04 ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 # Enable gradle cache: https://github.com/actions/cache/blob/master/examples.md#java---gradle - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} @@ -50,13 +51,14 @@ jobs: operating-system: [ macos-latest, ubuntu-18.04, windows-latest ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 # Enable gradle cache: https://github.com/actions/cache/blob/master/examples.md#java---gradle - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} @@ -75,8 +77,9 @@ jobs: steps: - uses: actions/checkout@v1 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 # Enable gradle cache: https://github.com/actions/cache/blob/master/examples.md#java---gradle - uses: actions/cache@v1 @@ -202,13 +205,14 @@ jobs: runs-on: ubuntu-18.04 needs: [ build, test-pytorch, test-tensorflow, test-aarch64, test-cuda-102, test-cuda-113 ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 # Enable gradle cache: https://github.com/actions/cache/blob/master/examples.md#java---gradle - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} diff --git a/.github/workflows/publish_android_packages.yml b/.github/workflows/publish_android_packages.yml index bbed73b1070..23319faa6ee 100644 --- a/.github/workflows/publish_android_packages.yml +++ b/.github/workflows/publish_android_packages.yml @@ -14,13 +14,14 @@ jobs: release-android: runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 # Enable gradle cache: https://github.com/actions/cache/blob/master/examples.md#java---gradle - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} diff --git a/.github/workflows/serving_publish.yml b/.github/workflows/serving_publish.yml index 5eb1c059f5b..398e1dba73c 100644 --- a/.github/workflows/serving_publish.yml +++ b/.github/workflows/serving_publish.yml @@ -20,15 +20,16 @@ jobs: runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: repository: deepjavalibrary/djl-serving - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 11 # Enable gradle cache: https://github.com/actions/cache/blob/master/examples.md#java---gradle - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}