Skip to content

Commit

Permalink
CI Install deps
Browse files Browse the repository at this point in the history
  • Loading branch information
connorslade committed Nov 26, 2023
1 parent 85636ad commit 50daa6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Install Dependencies
if: runner.os == 'Linux'
run: sudo apt install libasound2-dev libx11-dev libxi-dev xorg-dev
- name: Build
run: cargo build
4 changes: 3 additions & 1 deletion src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ use std::{path::PathBuf, process};

use anyhow::{Context, Result};
use clap::Parser;
#[cfg(target_os = "linux")]
use midir::os::unix::VirtualOutput;
use midir::{MidiOutput, MidiOutputConnection};

#[derive(Parser)]
Expand Down Expand Up @@ -66,7 +68,7 @@ impl Midi {
}
};
println!("Connecting to port {}", input.port_name(&port)?);
input.connect(&port, "makey-midi output")?
input.connect(&port, "makey-midi output").unwrap()
}
Midi::List => {
let input = MidiOutput::new("42synth input")?;
Expand Down

0 comments on commit 50daa6c

Please sign in to comment.