diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..b91cd0e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,19 @@ +name: Build & Test with Cargo +on: [push, pull_request] +jobs: + build: + name: cargo build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - run: cargo build --all + - run: cargo build --all --examples + test: + name: cargo test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - run: cargo test --all + - run: cargo test --all --examples