Commit 5ef19cb
fix(ci): unblock first PR run — sherpa Linux URL, CMake bump, RAG include path
Three pre-existing C++/script bugs surfaced when adding Linux/Windows/Web
to the matrix for the first time:
1. sherpa-onnx Linux x64 URL — script used the aarch64 naming pattern
(`-shared-cpu`) for x64; the actual filename is `-shared` (no `-cpu`
suffix) for x64. Also added a download-size sanity check so a 9-byte
404 page can no longer slip past curl into bzip2.
2. CMake version bump 3.22 → 3.27. cmake/FetchONNXRuntime.cmake uses
the DOWNLOAD_EXTRACT_TIMESTAMP keyword which was added in 3.24, so
3.22 mis-parses it as part of the URL list and fails with
"At least one entry of URL is a path". CMakeLists.txt's
cmake_minimum_required(3.22) stays as documentation; CI installs 3.27.
3. RAG CMakeLists used ${CMAKE_SOURCE_DIR}/include for commons headers,
which is wrong when commons is pulled in via add_subdirectory() from
another project (e.g. sdk/runanywhere-web/wasm/). Switched to
CMAKE_CURRENT_SOURCE_DIR-relative path that walks up to commons/.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f66850f commit 5ef19cb
3 files changed
Lines changed: 27 additions & 7 deletions
File tree
- sdk/runanywhere-commons
- scripts/linux
- src/features/rag
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| |||
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| |||
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
124 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
125 | 137 | | |
126 | 138 | | |
127 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
| |||
0 commit comments