Update cpal #98
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_and_test_linux: | |
name: build-and-test-linux | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
# - beta | |
# - nightly | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | |
- run: sudo apt install libasound2-dev && sudo apt install alsa-utils | |
- run: cargo build --verbose | |
- run: cargo test -- --nocapture | |
- uses: actions-rs/[email protected] | |
with: | |
version: "0.15.0" | |
args: "-- --test-threads 1" | |
- name: Upload to codecov.io | |
uses: codecov/[email protected] | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v1 | |
with: | |
name: code-coverage-report | |
path: cobertura.xml | |
build_and_test_mac: | |
name: build-and-test-mac | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
# - beta | |
# - nightly | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | |
- run: cargo build --verbose | |
- run: cargo test -- --nocapture | |
build_and_test_windows: | |
name: build-and-test-windows | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
# - beta | |
# - nightly | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | |
- run: cargo build --verbose | |
- run: cargo test -- --nocapture |