@@ -40,14 +40,22 @@ jobs:
4040 with :
4141 repository : ${{ inputs.repository }}
4242 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
4349 - name : Run importer
4450 run : |
4551 cd $AWSLC_DIR/crypto/fipsmodule/ml_kem
4652 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
4854 run : |
4955 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
5159 - name : Build+Test AWS-LC (FIPS=${{ matrix.fips }})
5260 run : |
5361 cd $AWSLC_DIR
@@ -91,14 +99,22 @@ jobs:
9199 with :
92100 repository : ${{ inputs.repository }}
93101 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
94108 - name : Run importer
95109 run : |
96110 cd $AWSLC_DIR/crypto/fipsmodule/ml_kem
97111 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
99113 run : |
100114 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
102118 - name : Run test
103119 run : |
104120 cd $AWSLC_DIR
@@ -127,14 +143,22 @@ jobs:
127143 with :
128144 repository : ${{ inputs.repository }}
129145 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
130152 - name : Run importer
131153 run : |
132154 cd $AWSLC_DIR/crypto/fipsmodule/ml_kem
133155 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
135157 run : |
136158 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
138162 - name : Run test
139163 run : |
140164 cd $AWSLC_DIR
0 commit comments