Skip to content

Commit ff084d1

Browse files
committed
change workflows to fix CI
1 parent 86abdc5 commit ff084d1

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

Diff for: .github/workflows/prod.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ jobs:
2222
- uses: actions/checkout@v2
2323
- name: Install protobuf-compiler
2424
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
25-
- run: rustup toolchain install ${{ matrix.rust }} && rustup default ${{ matrix.rust }} && rustup update ${{ matrix.rust }}
26-
- name: Install Clippy
27-
run: rustup component add clippy
28-
- name: Install Rustfmt
29-
run: rustup component add rustfmt
25+
- name: Install Rust
26+
uses: actions-rs/toolchain@v1
27+
with:
28+
profile: minimal
29+
toolchain: ${{ matrix.rust }}
30+
override: true
31+
components: rustfmt, clippy
3032
- name: Build
3133
run: cargo build --release --verbose --features arkworks
3234
- name: Test
3335
run: cargo test --release --verbose --features arkworks
3436
- name: Lint
35-
run: cargo clippy --release --features arkworks
37+
run: cargo clippy --release --features arkworks
3638
- name: Format
3739
run: cargo fmt -- --check
38-
39-

Diff for: rustfmt.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
use_small_heuristics = "Max"
2+
imports_granularity = "Crate"

0 commit comments

Comments
 (0)