Skip to content

Commit e2ac6bd

Browse files
authored
ci: install libasound2-dev so the studio's audio backend builds on Linux (#184)
Preview audio (#182) added rodio, which pulls cpal, which needs ALSA's development headers on Linux. The build was only ever checked on macOS, where cpal goes through CoreAudio and alsa-sys never enters the graph — so main went red on merge and every PR opened after it inherited the failure. Same line as the webkit/gtk/xdo deps already there, in both jobs.
1 parent 9ca7644 commit e2ac6bd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
- uses: actions/checkout@v4
2626
- name: Install system dependencies
2727
# webkit/gtk/xdo: required to compile rustmotion-studio (dioxus desktop)
28-
run: sudo apt-get update && sudo apt-get install -y libfontconfig1-dev libfreetype6-dev libwebkit2gtk-4.1-dev libgtk-3-dev libxdo-dev
28+
# asound: required by cpal, which rodio pulls in for preview audio
29+
run: sudo apt-get update && sudo apt-get install -y libfontconfig1-dev libfreetype6-dev libwebkit2gtk-4.1-dev libgtk-3-dev libxdo-dev libasound2-dev
2930
- uses: dtolnay/rust-toolchain@stable
3031
with:
3132
components: clippy
@@ -39,7 +40,8 @@ jobs:
3940
- uses: actions/checkout@v4
4041
- name: Install system dependencies
4142
# webkit/gtk/xdo: required to compile rustmotion-studio (dioxus desktop)
42-
run: sudo apt-get update && sudo apt-get install -y libfontconfig1-dev libfreetype6-dev libwebkit2gtk-4.1-dev libgtk-3-dev libxdo-dev
43+
# asound: required by cpal, which rodio pulls in for preview audio
44+
run: sudo apt-get update && sudo apt-get install -y libfontconfig1-dev libfreetype6-dev libwebkit2gtk-4.1-dev libgtk-3-dev libxdo-dev libasound2-dev
4345
- uses: dtolnay/rust-toolchain@stable
4446
- uses: Swatinem/rust-cache@v2
4547
- name: Run tests

0 commit comments

Comments
 (0)