Skip to content

Upgrade cpal from 0.16 to 0.17 #432

Upgrade cpal from 0.16 to 0.17

Upgrade cpal from 0.16 to 0.17 #432

Workflow file for this run

name: Clippy
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
clippy:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: ['1.85.0', '1.89.0']
platform: ['desktop', 'wasm32']
feature: ['none', 'cpal', 'mp3', 'all']
steps:
- uses: actions/checkout@v4
- name: install cpal dependencies
run: sudo apt-get install libasound2-dev
- name: install toolchain ${{ matrix.platform == 'wasm32' && 'and wasm32' || '' }}
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
targets: ${{ matrix.platform == 'wasm32' && 'wasm32-unknown-unknown' || '' }}
components: clippy
- name: cache
uses: Swatinem/rust-cache@v2
with:
shared-key: ${{ matrix.platform }}-${{ matrix.toolchain }}
- name: clippy (${{ matrix.platform }} - ${{ (matrix.feature == 'all' && 'all features') || (matrix.feature == 'none' && 'no feature' || matrix.feature) }})
run: >
cargo clippy
${{ ( matrix.platform != 'desktop' ) && '--target=wasm32-unknown-unknown' || '' }}
--package kira
${{ ( matrix.feature == 'all' ) && '--all-features' || '--no-default-features' }}
${{ ( matrix.feature != 'all' && matrix.feature != 'none' ) && format('--features={0}', matrix.feature) || '' }}