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.

34 lines
743 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. - 1.46.0
  11. - 1.51.0
  12. - 1.56.0
  13. - stable
  14. - beta
  15. - nightly
  16. steps:
  17. - uses: actions/checkout@v2
  18. - name: Install Rust ${{ matrix.rust }}
  19. uses: actions-rs/toolchain@v1
  20. with:
  21. toolchain: ${{ matrix.rust }}
  22. override: true
  23. profile: minimal
  24. - name: Run cargo build
  25. uses: actions-rs/cargo@v1
  26. with:
  27. command: build
  28. args: --verbose
  29. - name: Run cargo test
  30. uses: actions-rs/cargo@v1
  31. with:
  32. command: test
  33. args: --verbose