loom.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. on:
  2. - push
  3. - pull_request
  4. - workflow_dispatch
  5. name: Loom Models
  6. env:
  7. LOOM_MAX_PREEMPTIONS: 2
  8. LOOM_LOG: loom=trace
  9. RUSTFLAGS: "--cfg loom"
  10. jobs:
  11. loom_mpsc_async:
  12. name: "mpsc"
  13. runs-on: ubuntu-latest
  14. steps:
  15. - uses: actions/checkout@v2
  16. - name: Install stable toolchain
  17. uses: actions-rs/toolchain@v1
  18. with:
  19. profile: minimal
  20. toolchain: stable
  21. override: true
  22. components: rustfmt
  23. - name: Run cargo test
  24. uses: actions-rs/cargo@v1
  25. with:
  26. command: test
  27. args: --profile loom --lib -- mpsc_async
  28. loom_mpsc_sync:
  29. name: "mpsc::sync"
  30. runs-on: ubuntu-latest
  31. steps:
  32. - uses: actions/checkout@v2
  33. - name: Install stable toolchain
  34. uses: actions-rs/toolchain@v1
  35. with:
  36. profile: minimal
  37. toolchain: stable
  38. override: true
  39. components: rustfmt
  40. - name: Run cargo test
  41. uses: actions-rs/cargo@v1
  42. with:
  43. command: test
  44. args: --profile loom --lib -- mpsc_sync
  45. loom_thingbuf:
  46. name: "ThingBuf"
  47. runs-on: ubuntu-latest
  48. steps:
  49. - uses: actions/checkout@v2
  50. - name: Install stable toolchain
  51. uses: actions-rs/toolchain@v1
  52. with:
  53. profile: minimal
  54. toolchain: stable
  55. override: true
  56. components: rustfmt
  57. - name: Run cargo test
  58. uses: actions-rs/cargo@v1
  59. with:
  60. command: test
  61. args: --profile loom --lib -- thingbuf
  62. loom_util:
  63. name: "util"
  64. runs-on: ubuntu-latest
  65. steps:
  66. - uses: actions/checkout@v2
  67. - name: Install stable toolchain
  68. uses: actions-rs/toolchain@v1
  69. with:
  70. profile: minimal
  71. toolchain: stable
  72. override: true
  73. components: rustfmt
  74. - name: Run cargo test
  75. uses: actions-rs/cargo@v1
  76. with:
  77. command: test
  78. args: --profile loom --lib -- util