Skip to content

Commit

Permalink
Fix #199 (#253)
Browse files Browse the repository at this point in the history
* Test

* Only run examples

* Build step

* Headless window when env THREE_D_CI is set

* Set THREE_D_CI env variable

* Fix

* fix

* Println

* Revert "Println"

This reverts commit 2716991.

* Revert "Only run examples"

This reverts commit 6cea97b.
  • Loading branch information
asny authored May 25, 2022
1 parent 40a6fa9 commit 42da2b5
Show file tree
Hide file tree
Showing 2 changed files with 293 additions and 226 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
THREE_D_EXIT: 300
THREE_D_CI: 1

jobs:
desktop:
Expand Down Expand Up @@ -89,4 +90,17 @@ jobs:
toolchain: stable
override: true

- run: xvfb-run cargo run --example headless --no-default-features --features "glutin-window image-io"
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all-features

- run: |
for example in `find examples -maxdepth 1 -mindepth 1 -type d -printf "%f\n"` ; do
if [ -f "examples/$example/Cargo.toml" ]; then
echo "::group::Run $example example"
xvfb-run -a cargo run --example $example --all-features
echo "::endgroup::"
fi
done
Loading

0 comments on commit 42da2b5

Please sign in to comment.