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.

34 lines
904 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: Run tests
  27. run: cargo +stable test --release --verbose
  28. - name: Check Rustfmt Code Style
  29. run: cargo fmt --all -- --check
  30. - name: Check clippy warnings
  31. run: cargo clippy --all-targets -- -D warnings