From 3af763e4bec84dd3f1bcb3b950a4a38cce96521e Mon Sep 17 00:00:00 2001 From: Andrew Hlynskyi Date: Fri, 19 May 2023 23:36:48 +0300 Subject: [PATCH] cicd: build - add a `rust-test-threads` number input parameter --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aa569cf5..5e216bb4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,10 @@ on: description: Run tests default: true type: boolean + rust-test-threads: + description: Number of Rust test threads + default: "" + type: string jobs: build: @@ -119,7 +123,7 @@ jobs: - name: Setup env extras env: - RUST_TEST_THREADS: ${{ matrix.rust-test-threads }} + RUST_TEST_THREADS: ${{ matrix.rust-test-threads || inputs.rust-test-threads || '' }} USE_CROSS: ${{ matrix.use-cross }} TARGET: ${{ matrix.target }} CC: ${{ matrix.cc }}