loom.yml 2.0 KB

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