diff --git a/.github/workflows/rustci.yml b/.github/workflows/rustci.yml new file mode 100644 index 0000000..7184fe6 --- /dev/null +++ b/.github/workflows/rustci.yml @@ -0,0 +1,27 @@ +name: Build + +on: + push: + branches: + - master + pull_request: + branches: + - master +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true +jobs: + build: + name: Build Binary + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.target }} + - name: Run fmt check + run: cargo fmt --all -- --check + - name: Run clippy check + run: cargo clippy + - name: Run tests + run: cargo test --verbose