ci.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: Build and test
  2. on:
  3. push:
  4. pull_request:
  5. env:
  6. CARGO_TERM_COLOR: always
  7. jobs:
  8. server_and_client:
  9. name: Server and client
  10. strategy:
  11. matrix:
  12. toolchain:
  13. - 1.75.0 # MSRV
  14. - 1.82.0
  15. runs-on: ubuntu-latest
  16. steps:
  17. - uses: actions/checkout@v4
  18. - run: rustup update ${{ matrix.toolchain }}
  19. - run: rustup default ${{ matrix.toolchain }}
  20. - run: rustup component add clippy
  21. - run: cargo build --verbose
  22. - run: sh ./tests/run-tests.sh
  23. client_only:
  24. name: Client only
  25. strategy:
  26. matrix:
  27. toolchain:
  28. - 1.75.0 # MSRV
  29. - 1.82.0
  30. os:
  31. - windows-latest
  32. - macos-latest
  33. runs-on: ${{ matrix.os }}
  34. steps:
  35. - uses: actions/checkout@v4
  36. - run: rustup update ${{ matrix.toolchain }}
  37. - run: rustup default ${{ matrix.toolchain }}
  38. - run: rustup component add clippy
  39. - run: cargo build --verbose --package letmein
  40. - run: cargo clippy --package letmein -- --deny warnings
  41. - run: cargo clippy --tests --package letmein -- --deny warnings
  42. - run: cargo test --package letmein
  43. - run: cargo test --package letmein-conf
  44. - run: cargo test --package letmein-proto
  45. # vim: ts=2 sw=2 expandtab