loom.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. loom_mpsc_async:
  54. name: "mpsc"
  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_async
  70. RUSTFLAGS: "--cfg loom --cfg ci_skip_slow_models"
  71. loom_mpsc_sync:
  72. name: "mpsc::sync"
  73. runs-on: ubuntu-latest
  74. steps:
  75. - uses: actions/checkout@v2
  76. - name: Install stable toolchain
  77. uses: actions-rs/toolchain@v1
  78. with:
  79. profile: minimal
  80. toolchain: stable
  81. override: true
  82. components: rustfmt
  83. - name: Run cargo test
  84. uses: actions-rs/cargo@v1
  85. with:
  86. command: test
  87. args: --profile loom --lib -- mpsc_sync
  88. loom_thingbuf:
  89. name: "ThingBuf"
  90. runs-on: ubuntu-latest
  91. steps:
  92. - uses: actions/checkout@v2
  93. - name: Install stable toolchain
  94. uses: actions-rs/toolchain@v1
  95. with:
  96. profile: minimal
  97. toolchain: stable
  98. override: true
  99. components: rustfmt
  100. - name: Run cargo test
  101. uses: actions-rs/cargo@v1
  102. with:
  103. command: test
  104. args: --profile loom --lib -- thingbuf
  105. loom_util:
  106. name: "util"
  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 -- util