rust-build.yml 792 B

12345678910111213141516171819202122232425
  1. name: Build and Test
  2. on: [push, pull_request]
  3. jobs:
  4. compile-and-test:
  5. runs-on: ubuntu-20.04
  6. steps:
  7. - uses: actions/checkout@v2
  8. - name: Install Rust
  9. uses: actions-rs/toolchain@v1
  10. with:
  11. toolchain: stable
  12. override: true
  13. components: rustfmt, clippy
  14. - name: Install Dependencies
  15. run: |
  16. sudo apt-get update
  17. sudo apt-get install build-essential clang libclang-dev llvm-dev libudev-dev pkg-config
  18. - name: Create config directory
  19. run: |
  20. mkdir -p ~/.config/darkfi
  21. - name: Test with all features
  22. run: |
  23. cargo test --release --all-features