Merge pull request #503 from HEnquist/test32bit

Add CI for linux on armv7 (32bit)
This commit is contained in:
est31 2020-11-09 22:43:06 +01:00 • committed by GitHub
commit 296cf5caf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 61 additions and 0 deletions

View file

@ -99,6 +99,51 @@ jobs:
command: test command: test
args: --all --all-features --verbose args: --all --all-features --verbose
linux-check-and-test-armv7:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: armv7-unknown-linux-gnueabihf
override: true
- name: Build image
run: docker build -t cross/cpal_armv7:v1 ./
- name: Check without features for armv7
uses: actions-rs/cargo@v1
with:
command: check
use-cross: true
args: --target armv7-unknown-linux-gnueabihf --workspace --no-default-features --verbose
- name: Test without features for armv7
uses: actions-rs/cargo@v1
with:
command: test
use-cross: true
args: --target armv7-unknown-linux-gnueabihf --workspace --no-default-features --verbose
- name: Check all features for armv7
uses: actions-rs/cargo@v1
with:
command: check
use-cross: true
args: --target armv7-unknown-linux-gnueabihf --workspace --all-features --verbose
- name: Test all features for armv7
uses: actions-rs/cargo@v1
with:
command: test
use-cross: true
args: --target armv7-unknown-linux-gnueabihf --workspace --all-features --verbose
asmjs-wasm32-test: asmjs-wasm32-test:
strategy: strategy:
matrix: matrix:

7
Cross.toml Normal file
View file

@ -0,0 +1,7 @@
[target.armv7-unknown-linux-gnueabihf]
image = "cross/cpal_armv7:v1"
[target.armv7-unknown-linux-gnueabihf.env]
passthrough = [
"RUSTFLAGS",
]

9
Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM rustembedded/cross:armv7-unknown-linux-gnueabihf
ENV PKG_CONFIG_ALLOW_CROSS 1
ENV PKG_CONFIG_PATH /usr/lib/arm-linux-gnueabihf/pkgconfig/
RUN dpkg --add-architecture armhf && \
apt-get update && \
apt-get install libasound2-dev:armhf -y && \
apt-get install libjack-jackd2-dev:armhf libjack-jackd2-0:armhf -y \