ci.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. name: CI Checks
  2. on: [push, pull_request]
  3. jobs:
  4. test-units:
  5. strategy:
  6. matrix:
  7. os: [ubuntu-latest]
  8. runs-on: ${{ matrix.os }}
  9. steps:
  10. - uses: actions/checkout@v3
  11. - uses: actions-rs/toolchain@v1
  12. with:
  13. toolchain: nightly
  14. override: true
  15. - uses: actions-rs/toolchain@v1
  16. with:
  17. toolchain: nightly
  18. target: wasm32-unknown-unknown
  19. override: true
  20. - uses: Swatinem/rust-cache@v2
  21. - name: Install dependencies (Linux)
  22. run: |
  23. sh contrib/dependency_setup.sh
  24. if: matrix.os == 'ubuntu-latest'
  25. - name: Run test units
  26. run: |
  27. make test
  28. - name: Compile all bins
  29. run: |
  30. make
  31. feature-powerset:
  32. name: Test crate feature powerset on ${{ matrix.os }}
  33. runs-on: ${{ matrix.os }}
  34. strategy:
  35. matrix:
  36. os: [ubuntu-latest]
  37. steps:
  38. - uses: actions/checkout@v3
  39. - uses: actions-rs/toolchain@v1
  40. with:
  41. toolchain: nightly
  42. override: true
  43. - uses: actions-rs/toolchain@v1
  44. with:
  45. toolchain: nightly
  46. target: wasm32-unknown-unknown
  47. override: true
  48. - uses: taiki-e/install-action@cargo-hack
  49. - uses: Swatinem/rust-cache@v2
  50. - name: Install dependencies (Linux)
  51. run: |
  52. sh contrib/dependency_setup.sh
  53. if: matrix.os == 'ubuntu-latest'
  54. - name: Run feature powerset builds
  55. run: |
  56. make check
  57. fmt:
  58. name: rustfmt
  59. timeout-minutes: 30
  60. runs-on: ubuntu-latest
  61. steps:
  62. - uses: actions/checkout@v3
  63. - uses: actions-rs/toolchain@v1
  64. with:
  65. toolchain: nightly
  66. components: rustfmt
  67. override: true
  68. - run: |
  69. cargo fmt -- --check