forked from filecoin-project/bellperson
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: switch to upstream versions of group, ff and pairing
Breaking Change: Removes the `pairing` backend, reducing to only the `blst` backend. Co-authored-by: dignifiedquire <[email protected]> Co-authored-by: nemo <[email protected]>
- Loading branch information
1 parent
4e8d2eb
commit d1b9939
Showing
58 changed files
with
2,233 additions
and
2,174 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ version: 2.1 | |
parameters: | ||
nightly-version: | ||
type: string | ||
default: "nightly-2020-11-20" | ||
default: "nightly-2021-04-24" | ||
|
||
#orbs: | ||
# codecov: codecov/[email protected] | ||
|
@@ -22,7 +22,7 @@ restore-workspace: &restore-workspace | |
restore-cache: &restore-cache | ||
restore_cache: | ||
keys: | ||
- cargo-v1-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }} | ||
- cargo-v2-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }} | ||
- repo-source-{{ .Branch }}-{{ .Revision }} | ||
|
||
commands: | ||
|
@@ -44,30 +44,6 @@ commands: | |
sudo apt-get update -y | ||
sudo apt install -y ocl-icd-opencl-dev | ||
test_target_pairing: | ||
parameters: | ||
target: | ||
type: string | ||
steps: | ||
- *restore-workspace | ||
- *restore-cache | ||
- run: | ||
name: Test pairing (<< parameters.target >>) | ||
command: TARGET=<< parameters.target >> cargo test --no-default-features --features pairing | ||
no_output_timeout: 15m | ||
|
||
test_target_pairing_gpu: | ||
parameters: | ||
target: | ||
type: string | ||
steps: | ||
- *restore-workspace | ||
- *restore-cache | ||
- run: | ||
name: Test pairing (GPU) (<< parameters.target >>) | ||
command: TARGET=<< parameters.target >> cargo test --release --no-default-features --features gpu,pairing | ||
no_output_timeout: 30m | ||
|
||
test_target_blst: | ||
parameters: | ||
target: | ||
|
@@ -77,7 +53,7 @@ commands: | |
- *restore-cache | ||
- run: | ||
name: Test blst (<< parameters.target >>) | ||
command: TARGET=<< parameters.target >> cargo test --no-default-features --features blst | ||
command: TARGET=<< parameters.target >> cargo test --all | ||
no_output_timeout: 15m | ||
|
||
test_target_blst_gpu: | ||
|
@@ -89,7 +65,7 @@ commands: | |
- *restore-cache | ||
- run: | ||
name: Test blst (GPU) (<< parameters.target >>) | ||
command: TARGET=<< parameters.target >> cargo test --release --no-default-features --features gpu,blst | ||
command: TARGET=<< parameters.target >> cargo test --all --release --features gpu | ||
no_output_timeout: 30m | ||
|
||
test_target_blst_ignored: | ||
|
@@ -101,7 +77,7 @@ commands: | |
- *restore-cache | ||
- run: | ||
name: Test blst ignored (<< parameters.target >>) | ||
command: TARGET=<< parameters.target >> cargo test --release --no-default-features --features blst -- --ignored | ||
command: TARGET=<< parameters.target >> cargo test --release -- --ignored | ||
no_output_timeout: 30m | ||
- run: | ||
name: Show results | ||
|
@@ -126,7 +102,7 @@ jobs: | |
command: cargo generate-lockfile | ||
- restore_cache: | ||
keys: | ||
- cargo-v1-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }} | ||
- cargo-v2-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }} | ||
- run: cargo update | ||
- run: cargo fetch | ||
- run: rustup install $(cat rust-toolchain) | ||
|
@@ -141,28 +117,11 @@ jobs: | |
paths: | ||
- gpuci | ||
- save_cache: | ||
key: cargo-v1-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }} | ||
key: cargo-v2-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }} | ||
paths: | ||
- "~/.cargo" | ||
- "~/.rustup" | ||
|
||
test_pairing_x86_64-unknown-linux-gnu: | ||
executor: default | ||
steps: | ||
- set-env-path | ||
- install-gpu-deps | ||
- test_target_pairing: | ||
target: "x86_64-unknown-linux-gnu" | ||
|
||
test_pairing_gpu_x86_64-unknown-linux-gnu: | ||
executor: default | ||
steps: | ||
- set-env-path | ||
- install-gpu-deps | ||
- test_target_pairing_gpu: | ||
target: "x86_64-unknown-linux-gnu" | ||
|
||
|
||
test_blst_x86_64-unknown-linux-gnu: | ||
executor: default | ||
steps: | ||
|
@@ -204,20 +163,11 @@ jobs: | |
- *restore-cache | ||
- set-env-path | ||
- run: | ||
name: Run cargo clippy (default features (pairing)) | ||
command: cargo clippy --all-targets --features gpu -- -D warnings | ||
- run: | ||
name: Run cargo clippy (pairing) | ||
command: cargo clippy --all-targets --no-default-features --features pairing -- -D warnings | ||
- run: | ||
name: Run cargo clippy (blst) | ||
command: cargo clippy --all-targets --no-default-features --features blst -- -D warnings | ||
name: Run cargo clippy (default features) | ||
command: cargo clippy --all --all-targets -- -D warnings | ||
- run: | ||
name: Run cargo clippy (pairing,gpu) | ||
command: cargo clippy --all-targets --no-default-features --features pairing,gpu -- -D warnings | ||
- run: | ||
name: Run cargo clippy (blst,gpu) | ||
command: cargo clippy --all-targets --no-default-features --features blst,gpu -- -D warnings | ||
name: Run cargo clippy (gpu) | ||
command: cargo clippy --all --all-targets --features gpu -- -D warnings | ||
|
||
coverage_run: | ||
executor: default | ||
|
@@ -281,13 +231,6 @@ workflows: | |
requires: | ||
- cargo_fetch | ||
|
||
- test_pairing_x86_64-unknown-linux-gnu: | ||
requires: | ||
- cargo_fetch | ||
- test_pairing_gpu_x86_64-unknown-linux-gnu: | ||
requires: | ||
- cargo_fetch | ||
|
||
- test_blst_x86_64-unknown-linux-gnu: | ||
requires: | ||
- cargo_fetch | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.