File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -215,13 +215,7 @@ jobs:
215
215
cache-prefix : build-tests-${{ matrix.os }}-v0
216
216
217
217
- name : Build tests
218
- run : |
219
- mkdir -p target/release/tests
220
-
221
- cargo build --release --tests --package=openmina-node-testing --package=cli
222
- cargo build --release --tests --package=openmina-node-testing --package=cli --message-format=json > cargo-build-test.json
223
- jq -r '. | select(.executable != null and (.target.kind | (contains(["test"])))) | [.target.name, .executable ] | @tsv' cargo-build-test.json > tests.tsv
224
- while read NAME FILE; do cp -a $FILE target/release/tests/$NAME; done < tests.tsv
218
+ run : make build-tests
225
219
226
220
- name : Upload tests
227
221
if : matrix.os == 'ubuntu-22.04'
Original file line number Diff line number Diff line change @@ -45,6 +45,22 @@ build-release: ## Build the project in release mode
45
45
build-testing : # # Build the testing binary with scenario generators
46
46
cargo build --release --features scenario-generators --bin openmina-node-testing
47
47
48
+ .PHONY : build-tests
49
+ build-tests : # # Build tests for scenario testing
50
+ @mkdir -p target/release/tests
51
+ @cargo build --release --tests \
52
+ --package=openmina-node-testing \
53
+ --package=cli
54
+ @cargo build --release --tests \
55
+ --package=openmina-node-testing \
56
+ --package=cli \
57
+ --message-format=json > cargo-build-test.json
58
+ @jq -r ' . | select(.executable != null and (.target.kind | (contains(["test"])))) | [.target.name, .executable ] | @tsv' \
59
+ cargo-build-test.json > tests.tsv
60
+ @while read NAME FILE; do \
61
+ cp -a $$ FILE target/release/tests/$$ NAME; \
62
+ done < tests.tsv
63
+
48
64
.PHONY : build-tests-webrtc
49
65
build-tests-webrtc : # # Build tests for WebRTC
50
66
@mkdir -p target/release/tests
You can’t perform that action at this time.
0 commit comments