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.

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