Skip to content

Commit

Permalink
~
Browse files Browse the repository at this point in the history
  • Loading branch information
boozook committed Sep 8, 2023
1 parent 641ea3e commit 5f8991a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
os:
- macos-latest
- ubuntu-latest
- windows-latest
# - windows-latest
sdk:
- latest

Expand Down Expand Up @@ -106,8 +106,8 @@ jobs:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
# - ubuntu-latest
# - windows-latest
sdk:
- latest

Expand Down Expand Up @@ -138,17 +138,16 @@ jobs:
- name: Test
run: |
cargo test -p=cargo-playdate -- --nocapture
cargo test -p=cargo-playdate -- --nocapture --test-threads=1
rm -rf ./target/tmp
- name: Test (+usb)
run: |
cargo test -p=cargo-playdate --features=usb -- --nocapture
cargo test -p=cargo-playdate --features=usb -- --nocapture --test-threads=1
rm -rf ./target/tmp
- name: Install
run: |
cargo install -p=cargo-playdate --debug
run: cargo install --path=./cargo --debug

- name: Examples
run: |
Expand Down
8 changes: 6 additions & 2 deletions cargo/tests/build/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ fn run_build(crate_path: &Path,
.map(Into::into)
.chain([OsString::from(target_dir_arg)]);
let output = Tool::build(&crate_path, args)?;
assert!(output.status.success());
assert!(
output.status.success(),
"Tool failed with stderr:\n{}",
std::str::from_utf8(&output.stderr).unwrap()
);
Ok((output, target_dir))
}

Expand Down Expand Up @@ -262,7 +266,7 @@ mod examples {
}

#[test]
/// target: playdate hardware
/// target: playdate hardware+simulator(host)
fn sim_dev_release_examples() -> Result<()> {
let dev_target = DEVICE_TARGET;
let host_target = target_triple();
Expand Down

0 comments on commit 5f8991a

Please sign in to comment.