From 479794013e7ca125810b14f22f2935514c24d7db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A2ris=20DOUADY?= Date: Sat, 30 Nov 2024 09:35:17 +0100 Subject: [PATCH] Add github ci --- .github/workflows/rust-check.yml | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/rust-check.yml diff --git a/.github/workflows/rust-check.yml b/.github/workflows/rust-check.yml new file mode 100644 index 0000000..a20dee2 --- /dev/null +++ b/.github/workflows/rust-check.yml @@ -0,0 +1,36 @@ +name: rust-build + +on: + push: + branches: + - '*' + pull_request: + branches: + - master + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + + steps: + - name: Checkout repo + uses: actions/checkout@v2 + with: + submodules: true + + - name: Install Rust + uses: hecrj/setup-rust-action@v2 + with: + rust-version: 'stable' + + - name: Rustfmt + run: cargo fmt --verbose --all --check + + - name: Clippy + run: cargo clippy --verbose --tests --examples + + - name: Tests + run: cargo test --verbose \ No newline at end of file