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.

37 lines
1.2 KiB

  1. name: Build and Test Testudo
  2. on:
  3. push:
  4. branches: [master]
  5. pull_request:
  6. branches: [master]
  7. # The crate ark-ff uses the macro llvm_asm! when emitting asm which returns an
  8. # error because it was deprecated in favour of asm!. We temporarily overcome
  9. # this problem by setting the environment variable below (until the crate
  10. # is updated).
  11. env:
  12. RUSTFLAGS: "--emit asm -C llvm-args=-x86-asm-syntax=intel"
  13. jobs:
  14. build_nightly:
  15. runs-on: ubuntu-latest
  16. steps:
  17. - uses: actions/checkout@v2
  18. - name: Install
  19. run: rustup default nightly
  20. - name: Install rustfmt Components
  21. run: rustup component add rustfmt
  22. # - name: Install clippy
  23. # run: rustup component add clippy
  24. - name: Build
  25. run: cargo build --verbose
  26. - name: Run tests
  27. run: cargo test --verbose
  28. - name: Build examples
  29. run: cargo build --examples --verbose
  30. - name: Check Rustfmt Code Style
  31. run: cargo fmt --all -- --check
  32. # cargo clippy uses cargo check which returns an error when asm is emitted
  33. # we want to emit asm for ark-ff operations so we avoid using clippy for # now
  34. # - name: Check clippy warnings
  35. # run: cargo clippy --all-targets --all-features