File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 83
83
if : ${{ needs.check-needs-run.outputs.any-changes == 'true' }}
84
84
uses : actions/checkout@v4
85
85
86
- - name : Install alsa and udev
87
- if : ${{ needs.check-needs-run.outputs.any-changes == 'true' && runner.os == 'linux' }}
88
- run : |
89
- sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
90
- sudo rm -rf /usr/share/dotnet; sudo rm -rf /opt/ghc; sudo rm -rf "/usr/local/share/boost"; sudo rm -rf "$AGENT_TOOLSDIRECTORY"
91
86
- uses : actions-rs/toolchain@v1
92
87
if : ${{ needs.check-needs-run.outputs.any-changes == 'true' }}
93
88
with :
Original file line number Diff line number Diff line change 1
1
FROM rust:latest AS base
2
2
3
- RUN useradd -m appuser
4
- USER appuser
5
-
6
3
WORKDIR /usr/src/app
7
4
8
5
COPY . .
Original file line number Diff line number Diff line change @@ -1299,6 +1299,20 @@ impl Xtasks {
1299
1299
}
1300
1300
1301
1301
fn init ( app_settings : GlobalArgs , dont_update_ide : bool ) -> Result < ( ) > {
1302
+ // install alsa et al
1303
+ if cfg ! ( target_os = "linux" ) {
1304
+ Self :: run_system_command (
1305
+ & app_settings,
1306
+ "sh" ,
1307
+ "Failed to install Linux dependencies" ,
1308
+ vec ! [
1309
+ "-c" ,
1310
+ "sudo apt-get update && sudo apt-get install --no-install-recommends -y libasound2-dev libudev-dev"
1311
+ ] ,
1312
+ None ,
1313
+ ) ?;
1314
+ }
1315
+
1302
1316
// install cargo mdbook
1303
1317
Self :: run_system_command (
1304
1318
& app_settings,
You can’t perform that action at this time.
0 commit comments