@@ -55,15 +55,47 @@ jobs:
55
55
# - name: Run cargo fmt
56
56
# run: cargo fmt --all -- --check
57
57
58
- # test_release:
58
+ test_release :
59
+ runs-on : ubuntu-latest
60
+ name : Test in release mode
61
+ strategy :
62
+ matrix :
63
+ cargo-args : ['', '--features fixed-rows-to-discard']
64
+ env :
65
+ # Run all tests with multicore-SDR enabled.
66
+ FIL_PROOFS_USE_MULTICORE_SDR : true
67
+ steps :
68
+ - uses : actions/checkout@v4
69
+ - name : Install required packages
70
+ run : sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev
71
+
72
+ - name : Download the proof params
73
+ uses : ./.github/actions/proof-params-download
74
+ with :
75
+ github-token : ${{ secrets.GITHUB_TOKEN }}
76
+
77
+ - name : Test in release profile
78
+ run : |
79
+ cargo test --verbose --release --workspace --all-targets ${{ matrix.cargo-args }}
80
+ # Run sequentially due to core assignment tests that otherwise might
81
+ # interfere with each other
82
+ cargo test --release -p storage-proofs-porep --features isolated-testing ${{ matrix.cargo-args }} -- --test-threads=1
83
+ # Some `storage-proofs-update` tests need to run sequentially due to
84
+ # their high memory usage.
85
+ cargo test --release -p storage-proofs-update --features isolated-testing ${{ matrix.cargo-args }} -- --test-threads=1
86
+
87
+ # test_ignored_release:
59
88
# runs-on: ubuntu-latest
60
- # name: Test in release mode
89
+ # name: Test ignored in release mode
61
90
# strategy:
62
91
# matrix:
63
- # cargo-args: ['', '--features fixed-rows-to-discard']
64
- # env:
65
- # # Run all tests with multicore-SDR enabled.
66
- # FIL_PROOFS_USE_MULTICORE_SDR: true
92
+ # crate: [
93
+ # 'filecoin-proofs',
94
+ # 'storage-proofs-core',
95
+ # 'storage-proofs-porep',
96
+ # 'storage-proofs-post',
97
+ # 'storage-proofs-update'
98
+ # ]
67
99
# steps:
68
100
# - uses: actions/checkout@v4
69
101
# - name: Install required packages
@@ -74,27 +106,12 @@ jobs:
74
106
# with:
75
107
# github-token: ${{ secrets.GITHUB_TOKEN }}
76
108
#
77
- # - name: Test in release profile
78
- # run: |
79
- # cargo test --verbose --release --workspace --all-targets ${{ matrix.cargo-args }}
80
- # #cargo test --release -p storage-proofs-porep --features isolated-testing ${{ matrix.cargo-args }} -- --test-threads=1
81
- # cargo test --release -p storage-proofs-porep --features isolated-testing ${{ matrix.cargo-args }}
82
- # # Some `storage-proofs-update` tests need to run sequentially due to
83
- # # their high memory usage.
84
- # cargo test --release -p storage-proofs-update --features isolated-testing ${{ matrix.cargo-args }} -- --test-threads=1
109
+ # - name: Test ignored in release profile
110
+ # run: cargo test --package ${{ matrix.crate }} --release -- ignored --nocapture
85
111
86
112
# test_ignored_release:
87
113
# runs-on: ubuntu-latest
88
114
# name: Test ignored in release mode
89
- # strategy:
90
- # matrix:
91
- # crate: [
92
- # 'filecoin-proofs',
93
- # 'storage-proofs-core',
94
- # 'storage-proofs-porep',
95
- # 'storage-proofs-post',
96
- # 'storage-proofs-update'
97
- # ]
98
115
# steps:
99
116
# - uses: actions/checkout@v4
100
117
# - name: Install required packages
@@ -106,23 +123,7 @@ jobs:
106
123
# github-token: ${{ secrets.GITHUB_TOKEN }}
107
124
#
108
125
# - name: Test ignored in release profile
109
- # run: cargo test --package ${{ matrix.crate }} --release -- ignored --nocapture
110
-
111
- test_ignored_release :
112
- runs-on : ubuntu-latest
113
- name : Test ignored in release mode
114
- steps :
115
- - uses : actions/checkout@v4
116
- - name : Install required packages
117
- run : sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev
118
-
119
- - name : Download the proof params
120
- uses : ./.github/actions/proof-params-download
121
- with :
122
- github-token : ${{ secrets.GITHUB_TOKEN }}
123
-
124
- - name : Test ignored in release profile
125
- run : cargo test --release --workspace -- ignored --nocapture
126
+ # run: cargo test --release --workspace -- ignored --nocapture
126
127
127
128
test_no_default_features :
128
129
runs-on : ubuntu-latest
0 commit comments