ci.yml 878 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: CI Checks
  2. on: [push, pull_request]
  3. jobs:
  4. test:
  5. name: Test on ${{ matrix.os }}
  6. runs-on: ${{ matrix.os }}
  7. strategy:
  8. matrix:
  9. os: [ubuntu-latest]
  10. steps:
  11. - uses: actions/checkout@v2
  12. - uses: actions-rs/toolchain@v1
  13. with:
  14. toolchain: stable
  15. override: true
  16. - name: Install dependencies
  17. run: |
  18. sudo apt update
  19. sudo apt -y install build-essential clang libclang-dev llvm-dev libudev-dev pkg-config
  20. - name: Run tests
  21. run: |
  22. make test
  23. fmt:
  24. name: rustfmt
  25. timeout-minutes: 30
  26. runs-on: ubuntu-latest
  27. steps:
  28. - uses: actions/checkout@v2
  29. - uses: actions-rs/toolchain@v1
  30. with:
  31. toolchain: nightly
  32. override: true
  33. - run: |
  34. rustup component add rustfmt
  35. cargo fmt -- --check