From ce1d96ea573a4898d8153eeeea90dfc70e3616c5 Mon Sep 17 00:00:00 2001 From: Sebastian Imlay Date: Thu, 16 Jan 2020 11:55:49 -0800 Subject: [PATCH 1/3] Fist attempt at github fix --- .github/workflows/cpal.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/cpal.yml b/.github/workflows/cpal.yml index 1b8ca62..a26f8c1 100644 --- a/.github/workflows/cpal.yml +++ b/.github/workflows/cpal.yml @@ -145,3 +145,20 @@ jobs: run: | $Env:CPAL_ASIO_DIR = "$Env:GITHUB_WORKSPACE\asio" cargo test --all --all-features --verbose + + macos-test: + runs-on: macOS-latest + + steps: + - name: Install llvm and clang + run: brew install llvm + - name: Install stable + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Run without features + run: cargo test --all --no-default-features --verbose + - name: Run all features + run: cargo test --all --all-features --verbose From 9e4ebd86d9bbd2e5bd826689e66ca63b0be5f4bc Mon Sep 17 00:00:00 2001 From: Sebastian Imlay Date: Thu, 16 Jan 2020 12:01:03 -0800 Subject: [PATCH 2/3] Second attempt at github workflow. * Added actions/checkout * cargo build --example beep --- .github/workflows/cpal.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/cpal.yml b/.github/workflows/cpal.yml index a26f8c1..805d723 100644 --- a/.github/workflows/cpal.yml +++ b/.github/workflows/cpal.yml @@ -150,6 +150,7 @@ jobs: runs-on: macOS-latest steps: + - uses: actions/checkout@v1 - name: Install llvm and clang run: brew install llvm - name: Install stable @@ -158,6 +159,8 @@ jobs: profile: minimal toolchain: stable override: true + - name: Build beep example + run: cargo build --example beep - name: Run without features run: cargo test --all --no-default-features --verbose - name: Run all features From 1b10f92f9daf41f3e5d510624622a2da7c022c87 Mon Sep 17 00:00:00 2001 From: Alex Moon Date: Tue, 14 Jan 2020 15:56:46 -0500 Subject: [PATCH 3/3] Fix undeclared module errors on Mac. --- src/host/coreaudio/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/host/coreaudio/mod.rs b/src/host/coreaudio/mod.rs index 9314169..17af18b 100644 --- a/src/host/coreaudio/mod.rs +++ b/src/host/coreaudio/mod.rs @@ -27,6 +27,8 @@ use std::cell::RefCell; use std::os::raw::c_char; use std::ptr::null; use std::slice; +use std::thread; +use std::time::Duration; use self::coreaudio::audio_unit::{AudioUnit, Scope, Element}; use self::coreaudio::audio_unit::render_callback::{self, data};