Skip to content

Commit 812f977

Browse files
authored
Merge pull request #99 from CortexLM/fix/release-libasound2-dep
fix(ci): add libasound2-dev dependency for Linux release builds
2 parents 43f23ea + ed32295 commit 812f977

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.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)