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