@@ -40,14 +40,22 @@ jobs:
40
40
with :
41
41
repository : ${{ inputs.repository }}
42
42
commit : ${{ inputs.commit }}
43
+ - name : Apply pre-import patch if present
44
+ run : |
45
+ cd $AWSLC_DIR
46
+ if [ -f "$GITHUB_WORKSPACE/integration/aws-lc/pre_import.patch" ]; then
47
+ git apply $GITHUB_WORKSPACE/integration/aws-lc/pre_import.patch
48
+ fi
43
49
- name : Run importer
44
50
run : |
45
51
cd $AWSLC_DIR/crypto/fipsmodule/ml_kem
46
52
GITHUB_REPOSITORY=$GITHUB_REPOSITORY GITHUB_SHA=$GITHUB_SHA ./importer.sh --force
47
- - name : Apply custom stdlib patch
53
+ - name : Apply post-import patch if present
48
54
run : |
49
55
cd $AWSLC_DIR
50
- patch -p0 < $GITHUB_WORKSPACE/integration/aws-lc/add-custom-stdlib.patch
56
+ if [ -f "$GITHUB_WORKSPACE/integration/aws-lc/post_import.patch" ]; then
57
+ git apply $GITHUB_WORKSPACE/integration/aws-lc/post_import.patch
58
+ fi
51
59
- name : Build+Test AWS-LC (FIPS=${{ matrix.fips }})
52
60
run : |
53
61
cd $AWSLC_DIR
@@ -91,14 +99,22 @@ jobs:
91
99
with :
92
100
repository : ${{ inputs.repository }}
93
101
commit : ${{ inputs.commit }}
102
+ - name : Apply pre-import patch if present
103
+ run : |
104
+ cd $AWSLC_DIR
105
+ if [ -f "$GITHUB_WORKSPACE/integration/aws-lc/pre_import.patch" ]; then
106
+ git apply $GITHUB_WORKSPACE/integration/aws-lc/pre_import.patch
107
+ fi
94
108
- name : Run importer
95
109
run : |
96
110
cd $AWSLC_DIR/crypto/fipsmodule/ml_kem
97
111
GITHUB_REPOSITORY=$GITHUB_REPOSITORY GITHUB_SHA=$GITHUB_SHA ./importer.sh --force
98
- - name : Apply custom stdlib patch
112
+ - name : Apply post-import patch if present
99
113
run : |
100
114
cd $AWSLC_DIR
101
- patch -p0 < $GITHUB_WORKSPACE/integration/aws-lc/add-custom-stdlib.patch
115
+ if [ -f "$GITHUB_WORKSPACE/integration/aws-lc/post_import.patch" ]; then
116
+ git apply $GITHUB_WORKSPACE/integration/aws-lc/post_import.patch
117
+ fi
102
118
- name : Run test
103
119
run : |
104
120
cd $AWSLC_DIR
@@ -127,14 +143,22 @@ jobs:
127
143
with :
128
144
repository : ${{ inputs.repository }}
129
145
commit : ${{ inputs.commit }}
146
+ - name : Apply pre-import patch if present
147
+ run : |
148
+ cd $AWSLC_DIR
149
+ if [ -f "$GITHUB_WORKSPACE/integration/aws-lc/pre_import.patch" ]; then
150
+ git apply $GITHUB_WORKSPACE/integration/aws-lc/pre_import.patch
151
+ fi
130
152
- name : Run importer
131
153
run : |
132
154
cd $AWSLC_DIR/crypto/fipsmodule/ml_kem
133
155
GITHUB_REPOSITORY=$GITHUB_REPOSITORY GITHUB_SHA=$GITHUB_SHA ./importer.sh --force
134
- - name : Apply custom stdlib patch
156
+ - name : Apply post-import patch if present
135
157
run : |
136
158
cd $AWSLC_DIR
137
- patch -p0 < $GITHUB_WORKSPACE/integration/aws-lc/add-custom-stdlib.patch
159
+ if [ -f "$GITHUB_WORKSPACE/integration/aws-lc/post_import.patch" ]; then
160
+ git apply $GITHUB_WORKSPACE/integration/aws-lc/post_import.patch
161
+ fi
138
162
- name : Run test
139
163
run : |
140
164
cd $AWSLC_DIR
0 commit comments