Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actually fix ci #16

Merged
merged 2 commits into from
May 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
- staging
- trying

env:
RUSTFLAGS: -Dwarnings

jobs:
build_and_test:
name: Build and test
Expand All @@ -30,7 +27,7 @@ jobs:
- uses: actions/checkout@master

- name: Install alsa
run: sudo apt install alsa alsa-lib
run: sudo apt install alsa libasound2-dev

- name: Install ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
Expand All @@ -45,10 +42,10 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: check
args: --all --bins --examples --tests --features decode-all
args: -p creek-core -p creek-decode-symphonia -p creek-encode-wav --tests --features decode-all

- name: tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all
args: -p creek-core -p creek-decode-symphonia -p creek-encode-wav
7 changes: 3 additions & 4 deletions decode_symphonia/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ mod tests {


let (mut decoder, file_info) = decoder.unwrap();
println!("{:?}", file_info.num_frames);

let mut data_block = DataBlock::new(1, block_size);
unsafe {
Expand All @@ -400,7 +399,7 @@ mod tests {

let first_frame = [
0.0,
0.046873,
0.046875,
0.09375,
0.1484375,
0.1953125,
Expand Down Expand Up @@ -435,7 +434,7 @@ mod tests {

let samples = &mut data_block.block[0];
for i in 0..samples.len() {
assert!(approx_eq!(f32, second_frame[i], samples[i], ulps = 2));
assert_approx_eq!(f32, second_frame[i], samples[i], ulps = 2);
}

let last_frame = [
Expand All @@ -459,7 +458,7 @@ mod tests {
}
let samples = &mut data_block.block[0];
for i in 0..samples.len() {
assert!(approx_eq!(f32, last_frame[i], samples[i], ulps = 2));
assert_approx_eq!(f32, last_frame[i], samples[i], ulps = 2);
}

assert_eq!(decoder.current_frame, file_info.num_frames - 1);
Expand Down