Commit f481f30
committed
fix: prevent duplicate cross installation when cache restored
Issue: Cache restore-keys can restore from partial match (e.g., 'Linux-cross-')
but cache-hit is only 'true' for exact key matches. This caused the install
step to run even when cross binary was already cached, resulting in error:
'binary cross already exists in destination'
Fix: Add explicit check for cross binary existence before attempting install
Uses 'command -v cross' to detect if binary is available regardless of how
it was restored (exact cache hit or restore-keys match)
This ensures the install step only runs when cross is truly not available.1 parent cc10e79 commit f481f30
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
30 | 41 | | |
31 | | - | |
| 42 | + | |
32 | 43 | | |
33 | 44 | | |
34 | 45 | | |
| |||
0 commit comments