Skip to content

Commit cdf1ae6

Browse files
committed
chore: run tests in release mode
1 parent ae004d5 commit cdf1ae6

File tree

1 file changed

+30
-28
lines changed

1 file changed

+30
-28
lines changed

.github/workflows/ci.yml

+30-28
Original file line numberDiff line numberDiff line change
@@ -27,47 +27,49 @@ jobs:
2727
MSRV=$(cat ./rust-toolchain)
2828
echo "MSRV=$MSRV" | tee --append "$GITHUB_OUTPUT"
2929
30-
#linux:
30+
#check_clippy:
3131
# needs: set-msrv
3232
# runs-on: ubuntu-latest
33-
# name: Build and test
33+
# name: Clippy
3434
# steps:
3535
# - uses: actions/checkout@v4
3636
# - uses: dtolnay/rust-toolchain@master
3737
# with:
38-
# toolchain: ${{needs.set-msrv.outputs.msrv}}
38+
# toolchain: ${{ needs.set-msrv.outputs.msrv }}
39+
# components: clippy
3940
# - 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
4657

47-
check_clippy:
58+
test_release:
4859
needs: set-msrv
4960
runs-on: ubuntu-latest
50-
name: Clippy
61+
name: Build and test
5162
steps:
5263
- uses: actions/checkout@v4
5364
- uses: dtolnay/rust-toolchain@master
5465
with:
55-
toolchain: ${{ needs.set-msrv.outputs.msrv }}
56-
components: clippy
66+
toolchain: ${{needs.set-msrv.outputs.msrv}}
5767
- name: Install required packages
5868
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

Comments
 (0)