Add crossbeam-channel dependency to Cargo.toml and update Cargo.lock #78
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, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Cache target directory | |
uses: actions/[email protected] | |
with: | |
path: target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ runner.os }}-cargo- | |
- if: ${{ matrix.os == 'ubuntu-latest' }} | |
name: Install dependencies | |
run: sudo apt install -y libasound2-dev | |
- name: Build | |
run: cargo build -r | |
- name: Upload artifacts | |
uses: actions/[email protected] | |
with: | |
path: target/release/volt* | |
name: volt-${{ matrix.os }} |