ci.yml 713 B

123456789101112131415161718192021222324252627282930313233
  1. name: Build and test
  2. on:
  3. push:
  4. pull_request:
  5. env:
  6. CARGO_TERM_COLOR: always
  7. jobs:
  8. build_and_test:
  9. name: Build and test
  10. strategy:
  11. matrix:
  12. toolchain:
  13. - 1.77.0 # MSRV
  14. - 1.82.0
  15. os:
  16. - ubuntu-latest
  17. runs-on: ${{ matrix.os }}
  18. steps:
  19. - uses: actions/checkout@v4
  20. - run: sudo apt install libsqlite3-dev
  21. - run: rustup update ${{ matrix.toolchain }}
  22. - run: rustup default ${{ matrix.toolchain }}
  23. - run: rustup component add clippy
  24. - run: cargo build --verbose
  25. - run: cargo clippy -- --deny warnings
  26. - run: cargo clippy --tests -- --deny warnings
  27. - run: cargo test
  28. # vim: ts=2 sw=2 expandtab