mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-07 17:15:29 +00:00
[js/web] update branch name for pull:wasm (#12548)
* [js/web] update branch name for pull:wasm * revise message
This commit is contained in:
parent
cc9b3e1c37
commit
95f2a3e7e0
2 changed files with 4 additions and 4 deletions
|
|
@ -161,7 +161,7 @@ This project is a library for running ONNX models on browsers. It is the success
|
|||
|
||||
- Setup by script.
|
||||
|
||||
In `<ORT_ROOT>/js/web/`, run `npm run pull:wasm` to pull WebAssembly artifacts for latest master branch from CI pipeline.
|
||||
In `<ORT_ROOT>/js/web/`, run `npm run pull:wasm` to pull WebAssembly artifacts for latest main branch from CI pipeline.
|
||||
|
||||
- Download artifacts from pipeline manually.
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// WebAssembly side, so there is no need to rebuild WebAssembly.
|
||||
//
|
||||
// It performs the following operations:
|
||||
// 1. query build ID for latest successful build on master branch
|
||||
// 1. query build ID for latest successful build on main branch
|
||||
// 2. query download URL of build artifacts
|
||||
// 3. download and unzip the files to folders
|
||||
//
|
||||
|
|
@ -80,11 +80,11 @@ downloadJson(
|
|||
'&$top=1' +
|
||||
'&repositoryId=Microsoft/onnxruntime' +
|
||||
'&repositoryType=GitHub' +
|
||||
'&branchName=refs/heads/master',
|
||||
'&branchName=refs/heads/main',
|
||||
data => {
|
||||
const buildId = data.value[0].id;
|
||||
|
||||
console.log(`=== Found latest master build : ${buildId} ===`);
|
||||
console.log(`=== Found latest build on main branch: ${buildId} ===`);
|
||||
|
||||
// API reference: https://docs.microsoft.com/en-us/rest/api/azure/devops/build/artifacts/get%20artifact
|
||||
downloadJson(
|
||||
|
|
|
|||
Loading…
Reference in a new issue