forked from microsoft/Spartan
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'snarkpack-integration' into feat/remove-useless
- Loading branch information
Showing
17 changed files
with
244 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,27 @@ | ||
name: Build and Test Testudo | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
# The crate ark-ff uses the macro llvm_asm! when emitting asm which returns an | ||
# error because it was deprecated in favour of asm!. We temporarily overcome | ||
# this problem by setting the environment variable below (until the crate | ||
# is updated). | ||
env: | ||
RUSTFLAGS: "--emit asm -C llvm-args=-x86-asm-syntax=intel" | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build_nightly: | ||
cargo-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install | ||
run: rustup default nightly | ||
- name: Install rustfmt Components | ||
run: rustup component add rustfmt | ||
# - name: Install clippy | ||
# run: rustup component add clippy | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run tests | ||
run: cargo test --release --all-features --verbose | ||
- name: Build examples | ||
run: cargo build --examples --verbose | ||
- name: Check Rustfmt Code Style | ||
run: cargo fmt --all -- --check | ||
# cargo clippy uses cargo check which returns an error when asm is emitted | ||
# we want to emit asm for ark-ff operations so we avoid using clippy for # now | ||
# - name: Check clippy warnings | ||
# run: cargo clippy --all-targets --all-features | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
profile: minimal | ||
override: true | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
shared-key: cache-${{ hashFiles('**/Cargo.lock') }} | ||
cache-on-failure: true | ||
|
||
- name: cargo test | ||
run: RUST_LOG=info cargo test --all --all-features -- --nocapture |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.