From 307e4f33906beee7f386ea55cb34fe0d88f9200d Mon Sep 17 00:00:00 2001 From: radek Date: Sun, 21 Jul 2024 11:41:50 +0000 Subject: [PATCH] add build validation action --- .github/build-validation.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/build-validation.yml 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