You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.2 KiB

10 months ago
3 years ago
3 years ago
  1. name: ci
  2. on: [push, pull_request]
  3. jobs:
  4. test:
  5. name: Cargo build & test
  6. runs-on: ubuntu-latest
  7. strategy:
  8. matrix:
  9. rust:
  10. - 1.74.1
  11. - 1.75.0
  12. - 1.76.0
  13. - 1.77.0
  14. - stable
  15. - beta
  16. - nightly
  17. steps:
  18. - uses: actions/checkout@v4
  19. - name: Install Rust ${{ matrix.rust }}
  20. run: rustup toolchain install ${{ matrix.rust }}
  21. - name: Run cargo build
  22. run: cargo +${{ matrix.rust }} build --verbose
  23. - name: Run cargo test
  24. run: cargo +${{ matrix.rust }} test --verbose
  25. formatting:
  26. name: Cargo fmt
  27. runs-on: ubuntu-latest
  28. steps:
  29. - uses: actions/checkout@v4
  30. - name: Update Rust
  31. run: rustup update stable
  32. - name: Run cargo fmt
  33. run: cargo +stable fmt --all -- --check
  34. clippy:
  35. name: Clippy
  36. runs-on: ubuntu-latest
  37. steps:
  38. - uses: actions/checkout@v4
  39. - name: Update Rust
  40. run: rustup update stable
  41. - name: Run clippy
  42. run: cargo +stable clippy --all-features
  43. cargo-deny:
  44. name: Check dependencies
  45. runs-on: ubuntu-latest
  46. steps:
  47. - uses: actions/checkout@v4
  48. - uses: EmbarkStudios/cargo-deny-action@v1