Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

FreeBSD CI: run the GPU integration tests one at a time (#576)

BFlatd9413cec0ff1
diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml
index 00aac09ab..a5b7f0a21 100644
--- a/.github/workflows/freebsd.yml
+++ b/.github/workflows/freebsd.yml
@@ -52,7 +52,12 @@ jobs:
git config --global --add safe.directory "*"
rustc --version
CARGO_PROFILE_DEV_DEBUG=0 cargo build --workspace --all-targets --locked
- CARGO_PROFILE_DEV_DEBUG=0 cargo test --workspace --locked
+ CARGO_PROFILE_DEV_DEBUG=0 cargo test --workspace --locked --exclude photocraft-ui-egui
+ CARGO_PROFILE_DEV_DEBUG=0 cargo test -p photocraft-ui-egui --locked --lib
+ CARGO_PROFILE_DEV_DEBUG=0 cargo test -p photocraft-ui-egui --locked --doc
+ # The VM's software Vulkan driver crashes (SIGSEGV) when several tests set up a GPU
+ # device at once, so the GPU integration tests run one at a time here.
+ CARGO_PROFILE_DEV_DEBUG=0 cargo test -p photocraft-ui-egui --locked --test '*' -- --test-threads=1
# The release package, as release.yml builds it. Free the debug build's disk first.
rm -rf target/debug
CARGO_BUILD_JOBS=4 bash packaging/freebsd/package.sh