From ed322957e18c1e9693424a0307c74a98379fccf6 Mon Sep 17 00:00:00 2001 From: echobt Date: Wed, 4 Feb 2026 23:48:26 +0000 Subject: [PATCH] fix(ci): add libasound2-dev dependency for Linux release builds The alsa-sys crate requires ALSA development libraries to build on Linux. The CI workflow had this dependency but it was missing from the release workflow, causing all Linux builds to fail. This adds libasound2-dev installation for all Linux build targets: - x86_64-unknown-linux-gnu - aarch64-unknown-linux-gnu - x86_64-unknown-linux-musl - aarch64-unknown-linux-musl --- .github/workflows/release.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bf514b0c..9a5e16d5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -149,13 +149,21 @@ jobs: prefix-key: "rust-release-cli-${{ matrix.target }}" shared-key: ${{ needs.prepare.outputs.cache_key }} + # ========================================================================= + # Linux dependencies (required for alsa-sys crate) + # ========================================================================= + - name: Install Linux dependencies + if: runner.os == 'Linux' + run: | + sudo apt-get update + sudo apt-get install -y libasound2-dev + # ========================================================================= # Static musl build setup (for portable Linux binaries) # ========================================================================= - name: Install musl toolchain (x86_64 static) if: matrix.target == 'x86_64-unknown-linux-musl' run: | - sudo apt-get update sudo apt-get install -y musl-tools musl-dev # Verify musl-gcc is available which musl-gcc @@ -164,7 +172,6 @@ jobs: - name: Install musl toolchain (aarch64 static) if: matrix.target == 'aarch64-unknown-linux-musl' run: | - sudo apt-get update # For cross-compiling to aarch64-musl, we need the cross toolchain sudo apt-get install -y musl-tools musl-dev gcc-aarch64-linux-gnu # Install aarch64-linux-musl-gcc cross compiler