Commit 0373d6b
authored
fix(ci): disable audio feature for musl static builds (#100)
* fix(ci): disable audio feature for musl static builds
The alsa-sys crate requires glibc-based ALSA libraries which are
incompatible with musl static builds. This change makes the audio
feature optional and disables it for musl targets.
Changes:
- Made rodio dependency optional in cortex-tui behind 'audio' feature
- Added conditional compilation for audio-related code in sound.rs
- Disabled audio feature for musl builds in release workflow
- Non-audio builds fall back to terminal bell notifications
This allows portable static Linux binaries to be built without
audio support, while preserving full audio functionality for
standard (glibc) builds.
* style: fix formatting1 parent 812f977 commit 0373d6b
File tree
4 files changed
+61
-6
lines changed- .github/workflows
- src
- cortex-cli
- cortex-tui
- src
4 files changed
+61
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
| 250 | + | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
| |||
257 | 258 | | |
258 | 259 | | |
259 | 260 | | |
260 | | - | |
| 261 | + | |
| 262 | + | |
261 | 263 | | |
262 | 264 | | |
263 | 265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
69 | | - | |
70 | | - | |
| 74 | + | |
| 75 | + | |
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
| 17 | + | |
12 | 18 | | |
| 19 | + | |
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
| |||
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
| 33 | + | |
26 | 34 | | |
27 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
28 | 40 | | |
| 41 | + | |
29 | 42 | | |
30 | 43 | | |
| 44 | + | |
31 | 45 | | |
32 | 46 | | |
33 | 47 | | |
34 | 48 | | |
35 | 49 | | |
| 50 | + | |
36 | 51 | | |
37 | 52 | | |
38 | 53 | | |
| |||
78 | 93 | | |
79 | 94 | | |
80 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
81 | 105 | | |
| 106 | + | |
82 | 107 | | |
83 | 108 | | |
84 | 109 | | |
| |||
103 | 128 | | |
104 | 129 | | |
105 | 130 | | |
| 131 | + | |
106 | 132 | | |
107 | 133 | | |
108 | 134 | | |
| |||
121 | 147 | | |
122 | 148 | | |
123 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
124 | 160 | | |
125 | 161 | | |
126 | 162 | | |
| |||
133 | 169 | | |
134 | 170 | | |
135 | 171 | | |
| 172 | + | |
136 | 173 | | |
137 | 174 | | |
138 | 175 | | |
139 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
140 | 183 | | |
141 | 184 | | |
142 | 185 | | |
| |||
183 | 226 | | |
184 | 227 | | |
185 | 228 | | |
| 229 | + | |
186 | 230 | | |
187 | 231 | | |
188 | 232 | | |
189 | 233 | | |
190 | 234 | | |
191 | 235 | | |
192 | 236 | | |
| 237 | + | |
193 | 238 | | |
194 | 239 | | |
195 | 240 | | |
| |||
0 commit comments