Repository navigation
Commit 5a528ef
committed
ci(onnx): stage the LICENSE, and build a cache key that is not empty
Two review findings, both real, and the second is a bug this repo already
had.
**The archive had no LICENSE, so adopting it would have failed.**
`fetch-onnxruntime.mjs:304` throws `LICENSE not found inside …` and then
reads the file to confirm the library really is MIT — "asset names are
not evidence". The staged archive carried only the dylib and headers, so
it would have passed its SHA-256 and then died at vendoring, which is the
worst possible place to discover it. `LICENSE` and `ThirdPartyNotices.txt`
are now copied, matching what upstream ships.
**`${{ env.ImageOS }}` evaluates to the empty string.** The `env`
expression context carries only what a workflow, job or step `env:` block
defined; `ImageOS`/`ImageVersion` are set by the runner into its own
environment, so the expression silently disappears and the cache key loses
that component.
The proof is this repository's own cache list. `build-whisper-stt.yml`
builds its key the same way, and the stored keys read:
whisper-stt-build-darwin-arm64---2ca5d2c7…
whisper-stt-build-linux-x64---2ca5d2c7…
Three hyphens where two values should be. That workflow's comment explains
at length that scoping the key to the image version "auto-busts it on
every toolchain roll" — and it never has, on any platform, since the day
it was written. Filed separately; this commit only fixes the copy of the
mistake it was about to add.
Here the values are read in a `run:` step, where they are ordinary shell
variables, and passed through `GITHUB_OUTPUT`.1 parent c0a71fa commit 5a528ef
1 file changed
Lines changed: 29 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
87 | 103 | | |
88 | 104 | | |
89 | 105 | | |
90 | 106 | | |
91 | | - | |
92 | | - | |
93 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
94 | 112 | | |
95 | 113 | | |
96 | 114 | | |
| |||
155 | 173 | | |
156 | 174 | | |
157 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
158 | 184 | | |
159 | 185 | | |
160 | 186 | | |
| |||
0 commit comments