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.

51 lines
1.2 KiB

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