check.yml 917 B

123456789101112131415161718192021222324252627282930
  1. name: check
  2. on: [push, pull_request]
  3. jobs:
  4. check:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. # All generated code should be running on stable now, MRSV is 1.59.0
  9. toolchain: [nightly, stable, 1.59.0]
  10. target: [riscv32i-unknown-none-elf, riscv32imc-unknown-none-elf, riscv32imac-unknown-none-elf, riscv64imac-unknown-none-elf, riscv64gc-unknown-none-elf]
  11. include:
  12. # Nightly is only for reference and allowed to fail
  13. - rust: nightly
  14. experimental: true
  15. steps:
  16. - uses: actions/checkout@v2
  17. - uses: actions-rs/toolchain@v1
  18. with:
  19. profile: minimal
  20. toolchain: ${{ matrix.toolchain }}
  21. target: ${{ matrix.target }}
  22. override: true
  23. - uses: actions-rs/cargo@v1
  24. with:
  25. use-cross: true
  26. command: check
  27. args: --verbose --target ${{ matrix.target }}