diff --git a/.github/build-validation.yml b/.github/build-validation.yml new file mode 100644 index 0000000..f6f14b5 --- /dev/null +++ b/.github/build-validation.yml @@ -0,0 +1,25 @@ +name: Build validation +on: [pull_request] + +jobs: + build: + name: build-${{matrix.os}} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + + - name: Build + run: cargo build + + - name: Check formatting + run: cargo fmt --all -- --check + + - name: Check clippy + run: cargo clippy --all-targets --all-features -- -D warnings + + - name: Check tests + run: cargo test --all-features