Skip to content

Commit

Permalink
Merge pull request #261 from HEnquist/next20
Browse files Browse the repository at this point in the history
Version 2.0
  • Loading branch information
HEnquist authored Dec 12, 2023
2 parents 90b0bbe + ce710fa commit 5c1b0db
Show file tree
Hide file tree
Showing 66 changed files with 10,293 additions and 3,816 deletions.
173 changes: 73 additions & 100 deletions .github/workflows/ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
#container: ubuntu:20.04
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Update package list
run: sudo apt-get update
Expand All @@ -18,11 +18,8 @@ jobs:
run: sudo apt-get install curl wget -y

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy

- name: Install Alsa devel
Expand All @@ -31,181 +28,157 @@ jobs:
- name: Install PulseAudio
run: DEBIAN_FRONTEND="noninteractive" sudo apt-get install libpulse0 libpulse-dev -y

- name: Install Jack
run: DEBIAN_FRONTEND="noninteractive" sudo apt-get install libjack-dev -y

- name: Install OpenSSL
run: sudo apt-get install openssl libssl-dev -y

- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
run: cargo check

- name: Run cargo check nodefault
uses: actions-rs/cargo@v1
with:
command: check
args: --no-default-features
run: cargo check --no-default-features

- name: Run cargo test with pulse-backend
uses: actions-rs/cargo@v1
with:
command: test
args: --features pulse-backend
- name: Run cargo test with all supported backends
run: cargo test --features bluez-backend,cpal-backend,jack-backend,pulse-backend,

- name: Run cargo test with all optional features
run: cargo test --features 32bit,debug,fftw,secure-websocket

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings


run: cargo clippy -- -D warnings

check_test_arm:
name: Check and test Linux arm
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
target: armv7-unknown-linux-gnueabihf
override: true
targets: armv7-unknown-linux-gnueabihf

- name: Install cross
run: cargo install cross --git https://github.com/cross-rs/cross

- name: Build image
run: docker build -t cross/armv7:v1 --file Dockerfile_armv7 ./

- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
use-cross: true
args: --target armv7-unknown-linux-gnueabihf
run: cross check --target armv7-unknown-linux-gnueabihf

- name: Run cargo test for arm
uses: actions-rs/cargo@v1
with:
command: test
use-cross: true
args: --target armv7-unknown-linux-gnueabihf
run: cross test --target armv7-unknown-linux-gnueabihf

check_test_arm64:
name: Check and test Linux arm 64bit
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
target: aarch64-unknown-linux-gnu
override: true
targets: aarch64-unknown-linux-gnu

- name: Install cross
run: cargo install cross --git https://github.com/cross-rs/cross

- name: Build image
run: docker build -t cross/armv8:v1 --file Dockerfile_armv8 ./

- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
use-cross: true
args: --target aarch64-unknown-linux-gnu
run: cross check --target aarch64-unknown-linux-gnu

- name: Run cargo test for arm
uses: actions-rs/cargo@v1
run: cross test --target aarch64-unknown-linux-gnu

check_test_armv6:
name: Check and test Linux arm v6
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
command: test
use-cross: true
args: --target aarch64-unknown-linux-gnu
targets: arm-unknown-linux-gnueabihf

- name: Install cross
run: cargo install cross --git https://github.com/cross-rs/cross

- name: Build image
run: docker build -t cross/armv6:v1 --file Dockerfile_armv6 ./

- name: Run cargo check
run: cross check --target arm-unknown-linux-gnueabihf

- name: Run cargo test for arm
run: cross test --target arm-unknown-linux-gnueabihf
env:
LD_LIBRARY_PATH: /usr/lib/arm-linux-gnueabihf

check_test_windows:
name: Check and test Windows
runs-on: windows-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --no-default-features
run: cargo check --no-default-features

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features
run: cargo test --no-default-features

check_test_macos:
name: Check and test macOS
runs-on: macos-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
run: cargo check --no-default-features

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test

run: cargo test --no-default-features

check_macos_arm:
name: Check macOS aarch64
runs-on: macos-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install stable toolchain for arm
uses: actions-rs/toolchain@v1
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
target: aarch64-apple-darwin
targets: aarch64-apple-darwin

- name: Install cross
run: cargo install cross --git https://github.com/cross-rs/cross

- name: Run cargo check for arm
uses: actions-rs/cargo@v1
with:
command: check
args: --target aarch64-apple-darwin
run: cross check --target aarch64-apple-darwin
env:
SDKROOT: /Applications/Xcode_12.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
MACOSX_DEPLOYMENT_TARGET: 11.1
DEVELOPER_DIR: /Applications/Xcode_12.4.app

SDKROOT: /Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk
MACOSX_DEPLOYMENT_TARGET: 13.1
DEVELOPER_DIR: /Applications/Xcode_14.2.app



Loading

0 comments on commit 5c1b0db

Please sign in to comment.