1515jobs :
1616 resolve-matrix :
1717 runs-on : ubuntu-latest
18- <<<<<<< HEAD
19- permissions :
20- contents : write
21- actions : write
22- steps :
23- - name : Checkout code
24- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4
25-
26- - name : Install Python deps
27- run : python -m pip install pytest requests
28-
29- - name : Generate algorithm list
30- id : set
31- run : |
32- python3 - <<'PY'
33- import os, sys
34- sys.path.insert(0, 'tests')
35- import helpers
36- algs = helpers.available_kems_by_name() + helpers.available_sigs_by_name()
37- interactive_yaml = (
38- "fields:\n"
39- " - label: runtime-options\n"
40- " properties:\n"
41- " description: Choose one or more algorithms to execute constant-time testing on\n"
42- " display: Select the algorithm(s) to execute constant-time testing on\n"
43- " type: multiselect\n"
44- " choices:\n"
45- )
46- for a in algs:
47- interactive_yaml += f" - {a}\n"
48- interactive_yaml += " required: true\n"
49- with open(os.environ['GITHUB_OUTPUT'], 'a') as gout:
50- gout.write('interactive<<EOF\n')
51- gout.write(interactive_yaml)
52- gout.write('EOF\n')
53- PY
54-
55- - name : Example Interactive Inputs Step
56- id : interactive-inputs
57- uses : boasiHQ/interactive-inputs@v2
58- with :
59- timeout : 300
60- title : Select algorithm(s) for CT Testing
61- interactive : ${{ steps.set.outputs.interactive }}
62- notifier-slack-enabled : " false"
63- notifier-discord-enabled : " false"
64- github-token : ${{ github.token }}
65- ngrok-authtoken : ${{ secrets.NGROK_AUTHTOKEN }}
66- =======
67- >>>>>>> user-chooses
6818 outputs :
6919 matrix : ${{ steps.algs.outputs.matrix }}
7020 steps :
7121 - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4
7222 - run : python -m pip install pytest requests
7323 - name : Resolve algorithm list
7424 id : algs
25+ env :
26+ ALGORITHMS_INPUT : ${{ github.event.inputs.algorithms }}
7527 run : |
7628 python3 - <<'PY'
7729 import os, sys, json
7830 sys.path.insert(0, 'tests')
7931 import helpers
80- requested = "${{ github.event.inputs.algorithms }}" .strip()
32+ requested = os.environ["ALGORITHMS_INPUT"] .strip()
8133 all_algs = helpers.available_kems_by_name() + helpers.available_sigs_by_name()
8234 requested_set = { a.strip() for a in requested.split(',')}
8335 invalid_algorithms = requested_set - set(all_algs)
@@ -99,24 +51,15 @@ jobs:
9951 algorithm : ${{ fromJson(needs.resolve-matrix.outputs.matrix) }}
10052 compiler : [gcc, clang]
10153 liboqs_build : [generic, auto]
102- opt_flag : [-O0, -O1, -O2, -O3, -Os, -Ofast, "-O2 -fno-tree-vectorize", "-O3 -fno-tree-vectorize"]
54+ opt_flag : [-O0, -O1, -O2, -O3, -Os, -Ofast, "-O2 -fno-tree-vectorize", "-O3 -fno-tree-vectorize", "-O2 -fno-vectorize", "-O3 -fno-vectorize" ]
10355 exclude :
10456 - compiler : clang
10557 opt_flag : " -O2 -fno-tree-vectorize"
10658 - compiler : clang
10759 opt_flag : " -O3 -fno-tree-vectorize"
108- include :
109- - compiler : clang
110- liboqs_build : generic
60+ - compiler : gcc
11161 opt_flag : " -O2 -fno-vectorize"
112- - compiler : clang
113- liboqs_build : auto
114- opt_flag : " -O2 -fno-vectorize"
115- - compiler : clang
116- liboqs_build : generic
117- opt_flag : " -O3 -fno-vectorize"
118- - compiler : clang
119- liboqs_build : auto
62+ - compiler : gcc
12063 opt_flag : " -O3 -fno-vectorize"
12164 max-parallel : 5
12265 steps :
0 commit comments