@@ -55,47 +55,15 @@ jobs:
55
55
# - name: Run cargo fmt
56
56
# run: cargo fmt --all -- --check
57
57
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:
58
+ # test_release:
88
59
# runs-on: ubuntu-latest
89
- # name: Test ignored in release mode
60
+ # name: Test in release mode
90
61
# strategy:
91
62
# matrix:
92
- # crate: [
93
- # 'filecoin-proofs',
94
- # 'storage-proofs-core',
95
- # 'storage-proofs-porep',
96
- # 'storage-proofs-post',
97
- # 'storage-proofs-update'
98
- # ]
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
99
67
# steps:
100
68
# - uses: actions/checkout@v4
101
69
# - name: Install required packages
@@ -106,8 +74,15 @@ jobs:
106
74
# with:
107
75
# github-token: ${{ secrets.GITHUB_TOKEN }}
108
76
#
109
- # - name: Test ignored in release profile
110
- # run: cargo test --package ${{ matrix.crate }} --release -- ignored --nocapture
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
111
86
112
87
# test_ignored_release:
113
88
# runs-on: ubuntu-latest
@@ -125,29 +100,46 @@ jobs:
125
100
# - name: Test ignored in release profile
126
101
# run: cargo test --release --workspace -- ignored --nocapture
127
102
128
- test_no_default_features :
129
- runs-on : ubuntu-latest
130
- name : Test without default features
131
- steps :
132
- - uses : actions/checkout@v4
133
- - name : Install required packages
134
- run : sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev
135
-
136
- - name : Download the proof params
137
- uses : ./.github/actions/proof-params-download
138
- with :
139
- github-token : ${{ secrets.GITHUB_TOKEN }}
140
-
141
- - name : Test ignored in release profile
142
- run : cargo test --release --workspace --no-default-features
103
+ # test_no_default_features:
104
+ # runs-on: ubuntu-latest
105
+ # name: Test without default features
106
+ # steps:
107
+ # - uses: actions/checkout@v4
108
+ # - name: Install required packages
109
+ # run: sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev
110
+ #
111
+ # - name: Download the proof params
112
+ # uses: ./.github/actions/proof-params-download
113
+ # with:
114
+ # github-token: ${{ secrets.GITHUB_TOKEN }}
115
+ #
116
+ # - name: Test ignored in release profile
117
+ # run: cargo test --release --workspace --no-default-features
118
+ #
119
+ # build_gpu:
120
+ # runs-on: ubuntu-latest
121
+ # name: Build with CUDA and OpenCL support enabled
122
+ # steps:
123
+ # - uses: actions/checkout@v4
124
+ # - name: Install required packages
125
+ # run: sudo apt install --no-install-recommends --yes libhwloc-dev nvidia-cuda-toolkit ocl-icd-opencl-dev
126
+ #
127
+ # - name: Test ignored in release profile
128
+ # run: cargo build --workspace --features cuda,opencl
143
129
144
- build_gpu :
130
+ multicore_sdr :
145
131
runs-on : ubuntu-latest
146
- name : Build with CUDA and OpenCL support enabled
132
+ name : Run specific multicore SDR tests
133
+ env :
134
+ RUST_TEST_THREADS : 1
147
135
steps :
148
136
- uses : actions/checkout@v4
149
137
- name : Install required packages
150
- run : sudo apt install --no-install-recommends --yes libhwloc-dev nvidia-cuda-toolkit ocl-icd-opencl-dev
138
+ run : sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev
151
139
152
- - name : Test ignored in release profile
153
- run : cargo build --workspace --features cuda,opencl
140
+ - name : Without multicore SDR
141
+ run : cargo test -p storage-proofs-porep --features isolated-testing --release --lib stacked::vanilla::cores
142
+ - name : With multicore SDR
143
+ run : cargo test -p storage-proofs-porep --features isolated-testing --release --lib stacked::vanilla::cores
144
+ env :
145
+ FIL_PROOFS_USE_MULTICORE_SDR : true
0 commit comments