Skip to content

Commit 11cd55a

Browse files
Merge pull request #1669 from IABTechLab/cbc-UID2-4940-fix-eif-build-to-fail-correctly
Cbc UI d2 4940 fix eif build to fail correctly
2 parents 438d00e + 5ab927e commit 11cd55a

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/actions/build_aws_eif/action.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,22 @@ runs:
117117
docker cp amazonlinux:/sockd ${ARTIFACTS_OUTPUT_DIR}/
118118
docker cp amazonlinux:/vsockpx ${ARTIFACTS_OUTPUT_DIR}/
119119
docker cp amazonlinux:/${{ inputs.identity_scope }}operator.eif ${ARTIFACTS_OUTPUT_DIR}/uid2operator.eif
120+
121+
eifsize=$(wc -c < "${ARTIFACTS_OUTPUT_DIR}/uid2operator.eif")
122+
if [ $eifsize -le 1 ]; then
123+
echo "The eif was less then 1 byte. This indicates a build failure"
124+
exit 1
125+
fi
120126
121127
docker cp amazonlinux:/pcr0.txt ${{ steps.buildFolder.outputs.BUILD_FOLDER }}
122128
docker cp amazonlinux:/pcr0.txt ${ARTIFACTS_OUTPUT_DIR}/
123129
echo "enclave_id=$(cat ${{ steps.buildFolder.outputs.BUILD_FOLDER}}/pcr0.txt)" >> $GITHUB_OUTPUT
130+
131+
pcrsize=$(wc -c < "${{ steps.buildFolder.outputs.BUILD_FOLDER}}/pcr0.txt")
132+
if [ $pcrsize -le 1 ]; then
133+
echo "The pcr0.txt file was less then 1 byte. This indicates a build failure"
134+
exit 1
135+
fi
124136
125137
- name: Cleanup
126138
shell: bash

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.uid2</groupId>
88
<artifactId>uid2-operator</artifactId>
9-
<version>5.50.47</version>
9+
<version>5.50.50-alpha-186-SNAPSHOT</version>
1010

1111
<properties>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

0 commit comments

Comments
 (0)