@@ -27,47 +27,49 @@ jobs:
27
27
MSRV=$(cat ./rust-toolchain)
28
28
echo "MSRV=$MSRV" | tee --append "$GITHUB_OUTPUT"
29
29
30
- # linux :
30
+ # check_clippy :
31
31
# needs: set-msrv
32
32
# runs-on: ubuntu-latest
33
- # name: Build and test
33
+ # name: Clippy
34
34
# steps:
35
35
# - uses: actions/checkout@v4
36
36
# - uses: dtolnay/rust-toolchain@master
37
37
# with:
38
- # toolchain: ${{needs.set-msrv.outputs.msrv}}
38
+ # toolchain: ${{ needs.set-msrv.outputs.msrv }}
39
+ # components: clippy
39
40
# - name: Install required packages
40
- # run: sudo apt install --no-install-recommends --yes ocl-icd-opencl-dev nvidia-cuda-toolkit
41
- # - name: Build with default features
42
- # run: cargo build --workspace
43
- # # Machine has no GPU installed, hence run without the `cuda` or `opencl` feature.
44
- # - name: Run tests without default features
45
- # run: cargo test --workspace --no-default-features -- --nocapture
41
+ # run: sudo apt install --no-install-recommends --yes ocl-icd-opencl-dev libhwloc-dev
42
+ # - name: Run cargo clippy
43
+ # run: cargo clippy --all-targets --workspace -- -D warnings
44
+ #
45
+ # check_fmt:
46
+ # needs: set-msrv
47
+ # runs-on: ubuntu-latest
48
+ # name: Checking fmt
49
+ # steps:
50
+ # - uses: actions/checkout@v4
51
+ # - uses: dtolnay/rust-toolchain@master
52
+ # with:
53
+ # toolchain: ${{ needs.set-msrv.outputs.msrv }}
54
+ # components: rustfmt
55
+ # - name: Run cargo fmt
56
+ # run: cargo fmt --all -- --check
46
57
47
- check_clippy :
58
+ test_release :
48
59
needs : set-msrv
49
60
runs-on : ubuntu-latest
50
- name : Clippy
61
+ name : Build and test
51
62
steps :
52
63
- uses : actions/checkout@v4
53
64
- uses : dtolnay/rust-toolchain@master
54
65
with :
55
- toolchain : ${{ needs.set-msrv.outputs.msrv }}
56
- components : clippy
66
+ toolchain : ${{needs.set-msrv.outputs.msrv}}
57
67
- name : Install required packages
58
68
run : sudo apt install --no-install-recommends --yes ocl-icd-opencl-dev libhwloc-dev
59
- - name : Run cargo clippy
60
- run : cargo clippy --all-targets --workspace -- -D warnings
61
-
62
- check_fmt :
63
- needs : set-msrv
64
- runs-on : ubuntu-latest
65
- name : Checking fmt
66
- steps :
67
- - uses : actions/checkout@v4
68
- - uses : dtolnay/rust-toolchain@master
69
- with :
70
- toolchain : ${{ needs.set-msrv.outputs.msrv }}
71
- components : rustfmt
72
- - name : Run cargo fmt
73
- run : cargo fmt --all -- --check
69
+ - name : Build with default features
70
+ run : cargo build --workspace
71
+ - name : Test in release profile
72
+ run : cargo test --verbose --release --workspace --all-targets
73
+ # # Some `storage-proofs-update` tests need to run sequentially due
74
+ # # to their high memory usage.
75
+ # cargo test -p storage-proofs-update --features isolated-testing --release << parameters.cargo-args >> -- --test-threads=1
0 commit comments