Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 53e8049

Browse files
committed
use matrix strategy #37
1 parent ef60d1e commit 53e8049

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

.github/workflows/run_tests.yml

+17-16
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,22 @@ jobs:
1212
run_tests:
1313
runs-on: [self-hosted]
1414

15+
strategy:
16+
matrix:
17+
target: [
18+
blueprint_hashes_plonk_sha256_process_test,
19+
blueprint_hashes_plonk_sha512_process_test,
20+
blueprint_non_native_plonk_non_native_demo_test,
21+
blueprint_non_native_plonk_non_native_range_test,
22+
blueprint_non_native_plonk_fixed_base_mul_test,
23+
blueprint_non_native_plonk_complete_addition_test,
24+
blueprint_non_native_plonk_var_base_mul_per_bit_test,
25+
blueprint_non_native_plonk_variable_base_multiplication_test
26+
] # Tests to execute
27+
1528
env:
1629
SUITE_REPO: "NilFoundation/crypto3"
1730
LIB_NAME: "blueprint"
18-
TARGETS: "
19-
blueprint_hashes_plonk_sha256_process_test
20-
blueprint_hashes_plonk_sha512_process_test
21-
blueprint_non_native_plonk_non_native_demo_test
22-
blueprint_non_native_plonk_non_native_range_test
23-
blueprint_non_native_plonk_fixed_base_mul_test
24-
blueprint_non_native_plonk_complete_addition_test
25-
blueprint_non_native_plonk_var_base_mul_per_bit_test
26-
blueprint_non_native_plonk_variable_base_multiplication_test
27-
" # Tests to execute
2831

2932
steps:
3033
- name: Cleanup # TODO - move to scripts on runner
@@ -63,14 +66,12 @@ jobs:
6366
mkdir build
6467
cd build
6568
cmake ${{ env.CMAKE_ARGS }} ..
66-
cmake --build . -t ${{ env.TARGETS }}
69+
cmake --build . -t ${{ matrix.target }}
6770
6871
- name: Run tests
6972
working-directory: ./build
7073
run: |
7174
cd libs/${{ env.LIB_NAME }}/test
72-
for target in ${{ env.TARGETS }}
73-
do
74-
echo $target
75-
./$target
76-
done
75+
COLOR='\033[0;33m'
76+
echo -e "${COLOR}${{ matrix.target }}"
77+
./${{ matrix.target }}

0 commit comments

Comments
 (0)