@@ -52,32 +52,26 @@ jobs:
5252 with :
5353 node-version : " 20"
5454
55- - name : Download Archive
55+ - name : Download Build Info files
5656 uses : actions/download-artifact@v5
5757 with :
58- pattern : offline_installer- ${{ matrix.package_name }}-*
58+ pattern : build-info-*- ${{ matrix.package_name }}
5959 merge-multiple : true
6060 path : ./artifacts
6161 github-token : ${{ secrets.GITHUB_TOKEN }}
6262 run-id : ${{ inputs.run_id }}
6363
6464 # Non-Windows steps
6565
66- - name : Get CLI application version number (non-Windows)
66+ - name : Download latest EIM CLI binary (non-Windows)
6767 if : matrix.os != 'windows-latest'
6868 run : |
69- git fetch --tags
70- LATEST_TAG=$(git tag --sort=-creatordate | head -n 1)
71- STRIPPED_TAG=${LATEST_TAG#v}
72- echo "CLI_TAG=$STRIPPED_TAG" >> $GITHUB_ENV
69+ latest_release=$(curl -s https://api.github.com/repos/espressif/idf-im-ui/releases/latest)
70+ eim_cli_url=$(echo "$latest_release" | jq -r '.assets[] | select(.name | test("eim-cli-${{matrix.package_name}}.zip")) | .browser_download_url')
71+ curl -L -o ./artifacts/eim-cli.zip "$eim_cli_url"
7372
74- - name : Make EIM executable (non-Windows)
75- if : matrix.os != 'windows-latest'
76- run : |
77- ls -la ./artifacts/
78- unzip ./artifacts/offline_installer*.zip -d ./artifacts/
79- mv ./artifacts/archive_v*.zst ./artifacts/archive.zst
8073 ls -la ./artifacts/
74+ unzip ./artifacts/eim-cli.zip -d ./artifacts/
8175 chmod +x artifacts/eim
8276
8377 - name : Install dependencies and node.js (Ubuntu)
@@ -102,28 +96,20 @@ jobs:
10296 run : |
10397 export LOG_TO_FILE="true"
10498 export EIM_CLI_PATH="../artifacts/eim"
105- export EIM_OFFLINE_ARCHIVE="../artifacts/archive.zst"
106- export EIM_CLI_VERSION="eim ${{ env.CLI_TAG }}"
99+ export BUILD_INFO_PATH="../artifacts"
107100 cd tests
108- npm run test-CLI --file=CLI- offline
101+ npm run test-offline
109102 continue-on-error : true
110103
111104 # Windows steps
112105
113- - name : Get CLI application version number (Windows)
106+ - name : Download latest EIM CLI binary (Windows)
114107 if : matrix.os == 'windows-latest'
115108 run : |
116- git fetch --tags
117- $LATEST_TAG = (git tag --sort=-creatordate | Select-Object -First 1)
118- $STRIPPED_TAG = $LATEST_TAG -replace '^v', ''
119- echo "CLI_TAG=$STRIPPED_TAG" | Out-File -FilePath $env:GITHUB_ENV -Append
109+ latest_release=$(curl -s https://api.github.com/repos/espressif/idf-im-ui/releases/latest)
110+ eim_cli_url=$(echo "$latest_release" | jq -r '.assets[] | select(.name | test("eim-cli-${{matrix.package_name}}.exe")) | .browser_download_url')
111+ curl -L -o ./artifacts/eim-cli.exe "$eim_cli_url"
120112
121- - name : Check artifact (Windows)
122- if : matrix.os == 'windows-latest'
123- run : |
124- ls ./artifacts/
125- Expand-Archive ./artifacts/offline_installer*.zip -DestinationPath ./artifacts/
126- Move-Item "./artifacts/archive_v*.zst" "artifacts/archive.zst"
127113 ls ./artifacts/
128114
129115 - name : Update Python (Windows)
@@ -137,11 +123,10 @@ jobs:
137123 run : |
138124 $env:LOG_TO_FILE="true"
139125 $env:EIM_CLI_PATH = "..\artifacts\eim.exe"
140- $env:EIM_OFFLINE_ARCHIVE = "..\artifacts\archive.zst"
141- $env:EIM_CLI_VERSION = "eim ${{ env.CLI_TAG }}"
126+ $env:BUILD_INFO_PATH = "..\artifacts"
142127 Set-Location -Path "./tests"
143128 Expand-Archive node_modules.zip
144- npm run test-CLI-win --file=CLI- offline
129+ npm run test-offline
145130 continue-on-error : true
146131
147132 # Copy eim log files to standard location for easier access
0 commit comments