forked from GitHub/bdwgc-rust
Refactor example test (#289)
This commit is contained in:
11
.github/workflows/test.yaml
vendored
11
.github/workflows/test.yaml
vendored
@@ -22,15 +22,18 @@ jobs:
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- run: cargo test
|
||||
examples:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- macos-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- run: |
|
||||
cd examples
|
||||
./test.sh
|
||||
- run: examples/test.sh
|
||||
cmake:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
|
||||
set -ex
|
||||
|
||||
cargo build
|
||||
cd $(dirname $0)
|
||||
|
||||
for cargo_file in */Cargo.toml; do
|
||||
target/debug/$(dirname $cargo_file) &
|
||||
cargo run --bin $(dirname $cargo_file) &
|
||||
pid=$!
|
||||
sleep 20
|
||||
kill $pid
|
||||
|
||||
Reference in New Issue
Block a user