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 8383 if : ${{ needs.check-needs-run.outputs.any-changes == 'true' }}
8484 uses : actions/checkout@v4
8585
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"
9186 - uses : actions-rs/toolchain@v1
9287 if : ${{ needs.check-needs-run.outputs.any-changes == 'true' }}
9388 with :
Original file line number Diff line number Diff line change 11FROM rust:latest AS base
22
3- RUN useradd -m appuser
4- USER appuser
5-
63WORKDIR /usr/src/app
74
85COPY . .
Original file line number Diff line number Diff line change @@ -1299,6 +1299,20 @@ impl Xtasks {
12991299 }
13001300
13011301 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+
13021316 // install cargo mdbook
13031317 Self :: run_system_command (
13041318 & app_settings,
You can’t perform that action at this time.
0 commit comments