ci.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. name: CI
  2. on:
  3. push:
  4. branches:
  5. - staging
  6. - trying
  7. jobs:
  8. test:
  9. name: Test
  10. runs-on: ubuntu-latest
  11. strategy:
  12. matrix:
  13. rust: [1.31.0, stable, beta, nightly]
  14. steps:
  15. - uses: actions/checkout@v3
  16. - uses: dtolnay/rust-toolchain@master
  17. with:
  18. toolchain: ${{ matrix.rust }}
  19. - run: cargo build
  20. - run: ./ci/test_full.sh
  21. # i586 presents floating point challenges for lack of SSE/SSE2
  22. i586:
  23. name: Test (i586)
  24. runs-on: ubuntu-latest
  25. steps:
  26. - run: |
  27. sudo apt-get update
  28. sudo apt-get install gcc-multilib
  29. - uses: actions/checkout@v3
  30. - uses: dtolnay/rust-toolchain@stable
  31. with:
  32. target: i586-unknown-linux-gnu
  33. - run: cargo test --target i586-unknown-linux-gnu --all-features
  34. # try a target that doesn't have std at all
  35. no_std:
  36. name: No Std
  37. runs-on: ubuntu-latest
  38. steps:
  39. - uses: actions/checkout@v3
  40. - uses: dtolnay/rust-toolchain@stable
  41. with:
  42. target: thumbv6m-none-eabi
  43. - run: cargo build --target thumbv6m-none-eabi --no-default-features
  44. - run: cargo build --target thumbv6m-none-eabi --no-default-features --features libm
  45. fmt:
  46. name: Format
  47. runs-on: ubuntu-latest
  48. steps:
  49. - uses: actions/checkout@v3
  50. - uses: dtolnay/[email protected]
  51. with:
  52. components: rustfmt
  53. - run: cargo fmt --all --check