loom.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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_async:
  20. name: "mpsc"
  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_async
  36. loom_mpsc_sync:
  37. name: "mpsc::sync"
  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_sync
  53. loom_thingbuf:
  54. name: "ThingBuf"
  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 -- thingbuf
  70. loom_util:
  71. name: "util"
  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 -- util