Repository navigation
Commit c493131
committed
ci: use uname -m to download CMake in install-deps-debian
The action determines the host's architecture using `uname` to download
the proper CMake distribution.
`uname -i` is not portable [1] and gives `unknown` on Ubuntu 26.04.
`uname -m` gives `x86_64` and `aarch64` everywhere, matching the archive
names.
Ubuntu 26.04 runners offered by GitHub have CMake 4.4.3 preinstalled, so
we don't hit this problem: the version check skips the CMake 3.26.0
installation.
Also, while we're here, let the `curl`+`tar` sequence fail the step on a
failed download: add the `-f` flag to `curl` and split the `&&` command
sequence (`bash -e` ignores a failure of any command but the last in a
`&&` sequence [2]).
[1]: https://www.gnu.org/software/coreutils/manual/html_node/uname-invocation.html
[2]: https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
Drafted by an LLM, conducted and corrected by the commit author.
NO_DOC=ci
NO_TEST=ci
NO_CHANGELOG=ci1 parent 394694e commit c493131
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
0 commit comments