Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/cpal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,21 @@ jobs:
- name: Test all features for armv7
run: cross test --target armv7-unknown-linux-gnueabihf --workspace --all-features --verbose

linux-check-and-test-arm64:
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Build Docker container for arm64
run: docker build -f Dockerfile.arm64 -t cpal-arm64 .

- name: Run without features
run: docker run --rm cpal-arm64 cargo test --all --no-default-features --verbose

- name: Run all features
run: docker run --rm cpal-arm64 cargo test --all --all-features --verbose

asmjs-wasm32-test:
strategy:
matrix:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- CoreAudio: Detect default audio device lazily when building a stream, instead of during device enumeration.
- iOS: Fix example by properly activating audio session.
- WASAPI: Expose IMMDevice from WASAPI host Device.
- ALSA: Added support for arm64 Linux development, introducing a new Dockerfile.

# Version 0.16.0 (2025-06-07)

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ARG CROSS_BASE_IMAGE
FROM $CROSS_BASE_IMAGE

ENV PKG_CONFIG_ALLOW_CROSS 1
ENV PKG_CONFIG_PATH /usr/lib/arm-linux-gnueabihf/pkgconfig/
ENV PKG_CONFIG_ALLOW_CROSS=1
ENV PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig/

RUN dpkg --add-architecture armhf && \
apt-get update && \
Expand Down
17 changes: 17 additions & 0 deletions Dockerfile.arm64
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM rust:latest

# Install required dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libasound2-dev \
libjack-jackd2-dev \
libjack-jackd2-0 \
pkg-config \
libdbus-1-dev

# Set /cpal/ to working directory
WORKDIR /cpal
COPY . .

# When running this Docker container, ensure ALSA devices are exposed
# using `--device /dev/snd` and `--group-add audio`
Loading