From dac18b235b6c174fb0f9c909d85c992b1b7d3493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Bro=C5=84ski?= Date: Thu, 21 Nov 2024 15:01:10 +0000 Subject: [PATCH] Add simple GitHub pipeline. --- .github/workflows/rust.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..23f61d8 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,24 @@ +name: Rust CI + +on: + push: + branches: + - master + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Check code formatting + run: cargo fmt -- --check + + - name: Lint code + run: cargo clippy --all-targets --all-features -- -D warnings + + - name: Build library + run: cargo build --release