loom.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. on:
  2. push:
  3. branches:
  4. - main
  5. paths:
  6. - '**.rs'
  7. - '**/Cargo.toml'
  8. workflow_dispatch:
  9. pull_request:
  10. paths:
  11. - '**.rs'
  12. - '**/Cargo.toml'
  13. name: Loom Models
  14. env:
  15. LOOM_MAX_PREEMPTIONS: 2
  16. LOOM_LOG: loom=trace
  17. RUSTFLAGS: "--cfg loom"
  18. jobs:
  19. loom_mpsc_send_recv_wrap:
  20. name: "mpsc_send_recv_wrap"
  21. runs-on: ubuntu-latest
  22. steps:
  23. - uses: actions/checkout@v2
  24. - name: Install stable toolchain
  25. uses: actions-rs/toolchain@v1
  26. with:
  27. profile: minimal
  28. toolchain: stable
  29. override: true
  30. components: rustfmt
  31. - name: Run cargo test
  32. uses: actions-rs/cargo@v1
  33. with:
  34. command: test
  35. args: --profile loom --lib -- mpsc_send_recv_wrap
  36. loom_mpsc_try_send_recv:
  37. name: "mpsc_try_send_recv"
  38. runs-on: ubuntu-latest
  39. steps:
  40. - uses: actions/checkout@v2
  41. - name: Install stable toolchain
  42. uses: actions-rs/toolchain@v1
  43. with:
  44. profile: minimal
  45. toolchain: stable
  46. override: true
  47. components: rustfmt
  48. - name: Run cargo test
  49. uses: actions-rs/cargo@v1
  50. with:
  51. command: test
  52. args: --profile loom --lib -- mpsc_try_send_recv
  53. async_rx_close_unconsumed:
  54. name: "mpsc::rx_close_unconsumed"
  55. runs-on: ubuntu-latest
  56. steps:
  57. - uses: actions/checkout@v2
  58. - name: Install stable toolchain
  59. uses: actions-rs/toolchain@v1
  60. with:
  61. profile: minimal
  62. toolchain: stable
  63. override: true
  64. components: rustfmt
  65. - name: Run cargo test
  66. uses: actions-rs/cargo@v1
  67. with:
  68. command: test
  69. args: --profile loom --lib -- mpsc::rx_close_unconsumed
  70. sync_rx_close_unconsumed:
  71. name: "sync::rx_close_unconsumed"
  72. runs-on: ubuntu-latest
  73. steps:
  74. - uses: actions/checkout@v2
  75. - name: Install stable toolchain
  76. uses: actions-rs/toolchain@v1
  77. with:
  78. profile: minimal
  79. toolchain: stable
  80. override: true
  81. components: rustfmt
  82. - name: Run cargo test
  83. uses: actions-rs/cargo@v1
  84. with:
  85. command: test
  86. args: --profile loom --lib -- mpsc_sync::rx_close_unconsumed
  87. loom_mpsc_async:
  88. name: "mpsc"
  89. runs-on: ubuntu-latest
  90. steps:
  91. - uses: actions/checkout@v2
  92. - name: Install stable toolchain
  93. uses: actions-rs/toolchain@v1
  94. with:
  95. profile: minimal
  96. toolchain: stable
  97. override: true
  98. components: rustfmt
  99. - name: Run cargo test
  100. uses: actions-rs/cargo@v1
  101. with:
  102. command: test
  103. args: --profile loom --lib -- mpsc_async
  104. RUSTFLAGS: "--cfg loom --cfg ci_skip_slow_models"
  105. loom_mpsc_sync:
  106. name: "mpsc::sync"
  107. runs-on: ubuntu-latest
  108. steps:
  109. - uses: actions/checkout@v2
  110. - name: Install stable toolchain
  111. uses: actions-rs/toolchain@v1
  112. with:
  113. profile: minimal
  114. toolchain: stable
  115. override: true
  116. components: rustfmt
  117. - name: Run cargo test
  118. uses: actions-rs/cargo@v1
  119. with:
  120. command: test
  121. args: --profile loom --lib -- mpsc_sync
  122. loom_thingbuf:
  123. name: "ThingBuf"
  124. runs-on: ubuntu-latest
  125. steps:
  126. - uses: actions/checkout@v2
  127. - name: Install stable toolchain
  128. uses: actions-rs/toolchain@v1
  129. with:
  130. profile: minimal
  131. toolchain: stable
  132. override: true
  133. components: rustfmt
  134. - name: Run cargo test
  135. uses: actions-rs/cargo@v1
  136. with:
  137. command: test
  138. args: --profile loom --lib -- thingbuf
  139. loom_util:
  140. name: "util"
  141. runs-on: ubuntu-latest
  142. steps:
  143. - uses: actions/checkout@v2
  144. - name: Install stable toolchain
  145. uses: actions-rs/toolchain@v1
  146. with:
  147. profile: minimal
  148. toolchain: stable
  149. override: true
  150. components: rustfmt
  151. - name: Run cargo test
  152. uses: actions-rs/cargo@v1
  153. with:
  154. command: test
  155. args: --profile loom --lib -- util