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.

54 lines
1.2 KiB

3 years 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.60.0
  11. - 1.61.0
  12. - 1.62.1
  13. - 1.63.0
  14. - 1.64.0
  15. - 1.65.0
  16. - 1.66.0
  17. - stable
  18. - beta
  19. - nightly
  20. steps:
  21. - uses: actions/checkout@v3
  22. - name: Install Rust ${{ matrix.rust }}
  23. uses: actions-rs/toolchain@v1
  24. with:
  25. toolchain: ${{ matrix.rust }}
  26. override: true
  27. profile: minimal
  28. - name: Run cargo build
  29. uses: actions-rs/cargo@v1
  30. with:
  31. command: build
  32. args: --verbose
  33. - name: Run cargo test
  34. uses: actions-rs/cargo@v1
  35. with:
  36. command: test
  37. args: --verbose
  38. formatting:
  39. name: Cargo fmt
  40. runs-on: ubuntu-latest
  41. steps:
  42. - uses: actions/checkout@v3
  43. - uses: actions-rust-lang/setup-rust-toolchain@v1
  44. with:
  45. components: rustfmt
  46. - name: Rustfmt Check
  47. uses: actions-rust-lang/rustfmt@v1
  48. cargo-deny:
  49. name: Check dependencies
  50. runs-on: ubuntu-latest
  51. steps:
  52. - uses: actions/checkout@v3
  53. - uses: EmbarkStudios/cargo-deny-action@v1