From 79a7cc98c719617faeffc694e3486be80aaf403c Mon Sep 17 00:00:00 2001 From: Baptiste Parmantier Date: Wed, 12 Aug 2026 14:42:00 +0200 Subject: [PATCH] ci: install libasound2-dev so the studio's audio backend builds on Linux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .github/workflows/ci.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bfe4707b..07e10293 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -25,7 +25,8 @@ jobs: - uses: actions/checkout@v4 - name: Install system dependencies # webkit/gtk/xdo: required to compile rustmotion-studio (dioxus desktop) - run: sudo apt-get update && sudo apt-get install -y libfontconfig1-dev libfreetype6-dev libwebkit2gtk-4.1-dev libgtk-3-dev libxdo-dev + # asound: required by cpal, which rodio pulls in for preview audio + 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 - uses: dtolnay/rust-toolchain@stable with: components: clippy @@ -39,7 +40,8 @@ jobs: - uses: actions/checkout@v4 - name: Install system dependencies # webkit/gtk/xdo: required to compile rustmotion-studio (dioxus desktop) - run: sudo apt-get update && sudo apt-get install -y libfontconfig1-dev libfreetype6-dev libwebkit2gtk-4.1-dev libgtk-3-dev libxdo-dev + # asound: required by cpal, which rodio pulls in for preview audio + 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 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - name: Run tests