From 63de9b9e66fe3bc6f4b2259028823e11837a4e54 Mon Sep 17 00:00:00 2001 From: James Chen Date: Tue, 19 Nov 2024 13:53:09 +0800 Subject: [PATCH] Update yml --- .github/workflows/generate-oh-sdk-cache.yml | 7 ++++--- .github/workflows/native-compile-platforms.yml | 11 +++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/generate-oh-sdk-cache.yml b/.github/workflows/generate-oh-sdk-cache.yml index 2761f5852ec..b49b6b33f86 100644 --- a/.github/workflows/generate-oh-sdk-cache.yml +++ b/.github/workflows/generate-oh-sdk-cache.yml @@ -45,11 +45,12 @@ jobs: if [ ! -d "$HOME/openharmony" ]; then mkdir -p $HOME/openharmony echo "Download commandline-tools-linux.zip ..." - curl -o commandline-tools-linux.zip "https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_package_901_9/b8/v3/D1h9RzdeTZ-7Ga_hPu95DA/commandline-tools-linux-x64-5.0.3.906.zip?HW-CC-KV=V1&HW-CC-Date=20241119T025229Z&HW-CC-Expire=7200&HW-CC-Sign=88A1ABE766E5F72E7D78BC405443250A08421906EBB6B57C967D1FB32C47004F" + wget https://github.com/dumganhar/oh-sdk-for-ci/releases/download/api-12/commandline-tools-linux-x64-5.0.3.906.zip.001 + wget https://github.com/dumganhar/oh-sdk-for-ci/releases/download/api-12/commandline-tools-linux-x64-5.0.3.906.zip.002 echo "Unzip commandline-tools-linux.zip ..." - unzip commandline-tools-linux.zip -d $HOME/openharmony > /dev/null + 7z x commandline-tools-linux-x64-5.0.3.906.zip.001 -o$HOME/openharmony > /dev/null cd $HOME/openharmony ls -l - cd command-line-tools + cd commandline-tools-linux-x64-5.0.3.906 ls -l fi \ No newline at end of file diff --git a/.github/workflows/native-compile-platforms.yml b/.github/workflows/native-compile-platforms.yml index fe15d60dcb4..b9532cbd2e2 100644 --- a/.github/workflows/native-compile-platforms.yml +++ b/.github/workflows/native-compile-platforms.yml @@ -279,11 +279,14 @@ jobs: if [ ! -d "$HOME/openharmony" ]; then mkdir -p $HOME/openharmony echo "Download commandline-tools-linux.zip ..." - curl -o commandline-tools-linux.zip "https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_package_901_9/b8/v3/D1h9RzdeTZ-7Ga_hPu95DA/commandline-tools-linux-x64-5.0.3.906.zip?HW-CC-KV=V1&HW-CC-Date=20241119T025229Z&HW-CC-Expire=7200&HW-CC-Sign=88A1ABE766E5F72E7D78BC405443250A08421906EBB6B57C967D1FB32C47004F" + wget https://github.com/dumganhar/oh-sdk-for-ci/releases/download/api-12/commandline-tools-linux-x64-5.0.3.906.zip.001 + wget https://github.com/dumganhar/oh-sdk-for-ci/releases/download/api-12/commandline-tools-linux-x64-5.0.3.906.zip.002 echo "Unzip commandline-tools-linux.zip ..." - unzip commandline-tools-linux.zip -d $HOME/openharmony > /dev/null + 7z x commandline-tools-linux-x64-5.0.3.906.zip.001 -o$HOME/openharmony > /dev/null cd $HOME/openharmony ls -l + cd commandline-tools-linux-x64-5.0.3.906 + ls -l fi - name: Compile for Openharmony @@ -295,11 +298,11 @@ jobs: npm -v java --version echo "=============== list files in oh sdk ($HOME/openharmony) ===============" - pushd $HOME/openharmony/command-line-tools + pushd $HOME/openharmony/commandline-tools-linux-x64-5.0.3.906 ls -l popd - export PATH=$PATH:$HOME/openharmony/command-line-tools/bin + export PATH=$PATH:$HOME/openharmony/commandline-tools-linux-x64-5.0.3.906/bin which hvigorw NATIVE_ROOT=$GITHUB_WORKSPACE/native