You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
973 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. name: Build and Test Nova
  2. on:
  3. push:
  4. branches: [ main ]
  5. pull_request:
  6. branches: [ main ]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v2
  12. - name: Install
  13. run: rustup default stable
  14. - name: Install rustfmt Components
  15. run: rustup component add rustfmt
  16. - name: Install clippy
  17. run: rustup component add clippy
  18. - name: Install Wasm target
  19. run: rustup target add wasm32-unknown-unknown
  20. - name: Build
  21. run: cargo build --verbose
  22. - name: Wasm build
  23. run: cargo build --target wasm32-unknown-unknown
  24. - name: Build examples
  25. run: cargo build --examples --verbose
  26. - name: Build benches
  27. run: cargo build --benches --verbose
  28. - name: Run tests
  29. run: cargo +stable test --release --verbose
  30. - name: Check Rustfmt Code Style
  31. run: cargo fmt --all -- --check
  32. - name: Check clippy warnings
  33. run: cargo clippy --all-targets -- -D warnings