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.

35 lines
762 B

  1. name: ci
  2. on: [push, pull_request]
  3. jobs:
  4. test:
  5. name: Test
  6. runs-on: ubuntu-latest
  7. strategy:
  8. matrix:
  9. rust:
  10. - stable
  11. - 1.57.0
  12. - 1.56.0
  13. - 1.55.0
  14. - 1.54.0
  15. - beta
  16. - nightly
  17. steps:
  18. - uses: actions/checkout@v2
  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