Skip to content

Commit

Permalink
Merge pull request #10 from AlexanderARodin/release
Browse files Browse the repository at this point in the history
add raalog crate and reject using Trunk
  • Loading branch information
webraa authored Jan 23, 2024
2 parents 8dedd65 + 3c2aa57 commit bb068c2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,18 @@ jobs:
override: true
- name: Rust Cache # cache the rust build artefacts
uses: Swatinem/rust-cache@v1

- name: Tests
run : echo 'leads to panic' #make test
- name: try to Build Native
run : echo 'leads to panic' #make release

- name: Build
run : |
make configure
make test
make bindgen.wasm
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down
5 changes: 4 additions & 1 deletion src/player_to_audio/audio_core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,21 +144,24 @@ fn invoke_runOutputDevice( params: OutputDeviceParameters,
// TESTS
// // // // // // // //
#[cfg(test)]
mod test {
mod native_only_test {
use super::*;

#[test]
#[ignore]
fn create_inactive() {
let audio = AudioCore::new();
assert!(!audio.is_active());
}
#[test]
#[ignore]
fn start_active() {
let mut audio = AudioCore::new();
let _ = audio.start();
assert!(audio.is_active());
}
#[test]
#[ignore]
fn start_stop() {
let mut audio = AudioCore::new();
let _ = audio.start();
Expand Down

0 comments on commit bb068c2

Please sign in to comment.