bump toolchain and deps #36
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: Rust | |
on: | |
push: | |
branches: [ "master" ] | |
paths: | |
- "src/**" | |
- "build.rs" | |
pull_request: | |
branches: [ "master" ] | |
paths: | |
- "src/**" | |
- "build.rs" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install alsa | |
run: sudo apt-get install alsa-base libasound2-dev libudev-dev | |
- name: Rustfmt | |
run: cargo fmt -- --check | |
- name: Clippy | |
run: cargo clippy --verbose | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --verbose | |
build-mac: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install M1 target | |
run: rustup target add aarch64-apple-darwin | |
- name: Build x86 | |
run: cargo build --verbose | |
- name: Build m1 | |
run: cargo build --target aarch64-apple-darwin --verbose |