rust.yml 949 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. on: push
  2. name: CI Build
  3. jobs:
  4. ci:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. rust:
  9. - stable
  10. - beta
  11. - nightly
  12. steps:
  13. - uses: actions/checkout@v1
  14. - uses: actions-rs/toolchain@v1
  15. with:
  16. profile: minimal
  17. toolchain: ${{ matrix.rust }}
  18. override: true
  19. components: rustfmt, clippy
  20. - uses: actions-rs/cargo@v1
  21. with:
  22. command: build
  23. args: --release
  24. - uses: actions-rs/cargo@v1
  25. with:
  26. command: test
  27. args: --release
  28. - uses: actions-rs/cargo@v1
  29. with:
  30. command: fmt
  31. args: --all -- --check
  32. - uses: actions-rs/cargo@v1
  33. with:
  34. command: clippy
  35. args: -- -D warnings
  36. - name: Archive build
  37. uses: actions/upload-artifact@v2
  38. with:
  39. name: receqif
  40. path: target/release/receqif