Skip to content

Commit 3af763e

Browse files
committed
cicd: build - add a rust-test-threads number input parameter
1 parent fcbc3db commit 3af763e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ on:
2020
description: Run tests
2121
default: true
2222
type: boolean
23+
rust-test-threads:
24+
description: Number of Rust test threads
25+
default: ""
26+
type: string
2327

2428
jobs:
2529
build:
@@ -119,7 +123,7 @@ jobs:
119123
120124
- name: Setup env extras
121125
env:
122-
RUST_TEST_THREADS: ${{ matrix.rust-test-threads }}
126+
RUST_TEST_THREADS: ${{ matrix.rust-test-threads || inputs.rust-test-threads || '' }}
123127
USE_CROSS: ${{ matrix.use-cross }}
124128
TARGET: ${{ matrix.target }}
125129
CC: ${{ matrix.cc }}

0 commit comments

Comments
 (0)