4
0

check.yml 990 B

12345678910111213141516171819202122232425262728293031
  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. privilege: [machine, user]
  12. include:
  13. # Nightly is only for reference and allowed to fail
  14. - rust: nightly
  15. experimental: true
  16. steps:
  17. - uses: actions/checkout@v2
  18. - uses: actions-rs/toolchain@v1
  19. with:
  20. profile: minimal
  21. toolchain: ${{ matrix.toolchain }}
  22. target: ${{ matrix.target }}
  23. override: true
  24. - uses: actions-rs/cargo@v1
  25. with:
  26. use-cross: true
  27. command: check
  28. args: --verbose --target ${{ matrix.target }} --features=${{matrix.privilege}}-mode