diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 37dd1c4..6c910e6 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -28,9 +28,7 @@ jobs: with: submodules: true - uses: Swatinem/rust-cache@v2 - - run: | - cd examples - ./test.sh + - run: examples/test.sh cmake: runs-on: ubuntu-latest steps: diff --git a/examples/test.sh b/examples/test.sh index 8be627e..a5569b1 100755 --- a/examples/test.sh +++ b/examples/test.sh @@ -2,12 +2,11 @@ set -ex -cargo build +cd $(dirname $0) -for cargo_file in */Cargo.toml -do - target/debug/$(dirname $cargo_file) & - pid=$! - sleep 10 - kill $pid +for cargo_file in */Cargo.toml; do + cargo run --bin $(dirname $cargo_file) & + pid=$! + sleep 20 + kill $pid done