miri.yaml 630 B

123456789101112131415161718192021222324252627282930
  1. on:
  2. push:
  3. branches:
  4. - main
  5. paths:
  6. - '**.rs'
  7. workflow_dispatch:
  8. pull_request:
  9. paths:
  10. - '**.rs'
  11. name: Miri
  12. jobs:
  13. tests:
  14. name: Miri tests
  15. runs-on: ubuntu-latest
  16. steps:
  17. - uses: actions/checkout@v2
  18. - name: Install nightly toolchain
  19. uses: actions-rs/toolchain@v1
  20. with:
  21. profile: minimal
  22. toolchain: nightly
  23. override: true
  24. components: miri
  25. - name: Run Miri tests
  26. - name: miri
  27. run: cargo miri test --lib --no-fail-fast
  28. env:
  29. MIRIFLAGS: -Zmiri-disable-isolation -Zmiri-tag-raw-pointers