ci.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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-2024-02-01
  14. override: true
  15. - uses: actions-rs/toolchain@v1
  16. with:
  17. toolchain: nightly-2024-02-01
  18. target: wasm32-unknown-unknown
  19. override: true
  20. - uses: Swatinem/rust-cache@v2
  21. - run: |
  22. sudo apt update -y && sudo apt upgrade -y
  23. - name: Install dependencies (Linux)
  24. run: |
  25. sh contrib/dependency_setup.sh
  26. if: matrix.os == 'ubuntu-latest'
  27. - name: Run test units
  28. run: |
  29. make CARGO="cargo +nightly-2024-02-01" test
  30. - name: Compile all bins
  31. run: |
  32. make CARGO="cargo +nightly-2024-02-01"
  33. feature-powerset:
  34. name: Test crate feature powerset on ${{ matrix.os }}
  35. runs-on: ${{ matrix.os }}
  36. strategy:
  37. matrix:
  38. os: [ubuntu-latest]
  39. steps:
  40. - uses: actions/checkout@v3
  41. - uses: actions-rs/toolchain@v1
  42. with:
  43. toolchain: nightly-2024-02-01
  44. override: true
  45. - uses: actions-rs/toolchain@v1
  46. with:
  47. toolchain: nightly-2024-02-01
  48. target: wasm32-unknown-unknown
  49. override: true
  50. - uses: taiki-e/install-action@cargo-hack
  51. - uses: Swatinem/rust-cache@v2
  52. - run: |
  53. sudo apt update -y && sudo apt upgrade -y
  54. - name: Install dependencies (Linux)
  55. run: |
  56. sh contrib/dependency_setup.sh
  57. if: matrix.os == 'ubuntu-latest'
  58. - name: Run feature powerset builds
  59. run: |
  60. make CARGO="cargo +nightly-2024-02-01" check
  61. fmt:
  62. name: rustfmt
  63. timeout-minutes: 30
  64. runs-on: ubuntu-latest
  65. steps:
  66. - uses: actions/checkout@v3
  67. - uses: actions-rs/toolchain@v1
  68. with:
  69. toolchain: nightly-2024-02-01
  70. components: rustfmt
  71. override: true
  72. - run: |
  73. cargo +nightly-2024-02-01 fmt -- --check