Skip to content

Commit ed32295

Browse files
committed
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
1 parent 43f23ea commit ed32295

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,21 @@ jobs:
149149
prefix-key: "rust-release-cli-${{ matrix.target }}"
150150
shared-key: ${{ needs.prepare.outputs.cache_key }}
151151

152+
# =========================================================================
153+
# Linux dependencies (required for alsa-sys crate)
154+
# =========================================================================
155+
- name: Install Linux dependencies
156+
if: runner.os == 'Linux'
157+
run: |
158+
sudo apt-get update
159+
sudo apt-get install -y libasound2-dev
160+
152161
# =========================================================================
153162
# Static musl build setup (for portable Linux binaries)
154163
# =========================================================================
155164
- name: Install musl toolchain (x86_64 static)
156165
if: matrix.target == 'x86_64-unknown-linux-musl'
157166
run: |
158-
sudo apt-get update
159167
sudo apt-get install -y musl-tools musl-dev
160168
# Verify musl-gcc is available
161169
which musl-gcc
@@ -164,7 +172,6 @@ jobs:
164172
- name: Install musl toolchain (aarch64 static)
165173
if: matrix.target == 'aarch64-unknown-linux-musl'
166174
run: |
167-
sudo apt-get update
168175
# For cross-compiling to aarch64-musl, we need the cross toolchain
169176
sudo apt-get install -y musl-tools musl-dev gcc-aarch64-linux-gnu
170177
# Install aarch64-linux-musl-gcc cross compiler

0 commit comments

Comments
 (0)