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.

40 lines
1017 B

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. - stable
  14. - beta
  15. - nightly
  16. steps:
  17. - uses: actions/checkout@v4
  18. - name: Install Rust ${{ matrix.rust }}
  19. run: rustup toolchain install ${{ matrix.rust }}
  20. - name: Run cargo build
  21. run: cargo +${{ matrix.rust }} build --verbose
  22. - name: Run cargo test
  23. run: cargo +${{ matrix.rust }} test --verbose
  24. formatting:
  25. name: Cargo fmt
  26. runs-on: ubuntu-latest
  27. steps:
  28. - uses: actions/checkout@v4
  29. - uses: actions-rust-lang/setup-rust-toolchain@v1
  30. with:
  31. components: rustfmt
  32. - name: Rustfmt Check
  33. uses: actions-rust-lang/rustfmt@v1
  34. cargo-deny:
  35. name: Check dependencies
  36. runs-on: ubuntu-latest
  37. steps:
  38. - uses: actions/checkout@v4
  39. - uses: EmbarkStudios/cargo-deny-action@v1