rust.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # CI for the whole Cargo workspace. Although having two relatively independent
  2. # crates in this workspace (as they do not get released together, as for example
  3. # tokio with its sub crates), a PR for a certain CI may report errors in the
  4. # other workspace members. I think this is unfortunate. I've experimented with
  5. # CI runs per workspace member but the complexity in the end was not worth it.
  6. # Instead, it is the right thing that the CI always covers the whole repository
  7. # and that it is as stable as possible.
  8. name: "Cargo workspace"
  9. # Run on every push (tag, branch) and pull_request
  10. on: [pull_request, push, workflow_dispatch]
  11. env:
  12. CARGO_TERM_COLOR: always
  13. jobs:
  14. build_multiboot2_msrv:
  15. name: "build (msrv)"
  16. uses: ./.github/workflows/_build-rust.yml
  17. with:
  18. rust-version: 1.56.1
  19. do-style-check: false
  20. build_multiboot2_stable:
  21. name: "build (stable)"
  22. uses: ./.github/workflows/_build-rust.yml
  23. with:
  24. rust-version: stable
  25. do-style-check: false
  26. build_multiboot2_nightly:
  27. name: "build (nightly)"
  28. uses: ./.github/workflows/_build-rust.yml
  29. with:
  30. rust-version: nightly
  31. do-style-check: false
  32. build_nostd_multiboot2_msrv:
  33. name: "build no_std (msrv)"
  34. uses: ./.github/workflows/_build-rust.yml
  35. with:
  36. rust-version: 1.56.1
  37. do-style-check: false
  38. rust-target: thumbv7em-none-eabihf
  39. build_nostd_multiboot2_stable:
  40. name: "build no_std (stable)"
  41. uses: ./.github/workflows/_build-rust.yml
  42. with:
  43. rust-version: stable
  44. do-style-check: false
  45. rust-target: thumbv7em-none-eabihf
  46. build_nostd_multiboot2_nightly:
  47. name: "build no_std (nightly)"
  48. uses: ./.github/workflows/_build-rust.yml
  49. with:
  50. rust-version: nightly
  51. do-style-check: false
  52. rust-target: thumbv7em-none-eabihf
  53. style_multiboot2_msrv:
  54. name: "style (msrv)"
  55. uses: ./.github/workflows/_build-rust.yml
  56. with:
  57. rust-version: 1.56.1
  58. do-style-check: true
  59. do-test: false
  60. style_multiboot2_stable:
  61. name: "style (stable)"
  62. uses: ./.github/workflows/_build-rust.yml
  63. with:
  64. rust-version: stable
  65. do-style-check: true
  66. do-test: false