ci.yml 769 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: CI
  2. on: [push, pull_request]
  3. env:
  4. CARGO_TERM_COLOR: always
  5. jobs:
  6. test:
  7. strategy:
  8. matrix:
  9. target:
  10. - x86_64-unknown-linux-gnu
  11. - i686-unknown-linux-gnu
  12. - aarch64-unknown-linux-gnu
  13. - riscv64gc-unknown-linux-gnu
  14. - riscv32gc-unknown-linux-gnu
  15. runs-on: ubuntu-latest
  16. steps:
  17. - uses: actions/checkout@v4
  18. - name: Install Rust
  19. run: |
  20. rustup update nightly
  21. rustup default nightly
  22. - name: Install cross-compilation tools
  23. uses: taiki-e/setup-cross-toolchain-action@v1
  24. with:
  25. target: ${{ matrix.target }}
  26. - name: Build library
  27. run: cargo build --release $BUILD_STD
  28. - name: Run tests
  29. run: cargo test --release $BUILD_STD