@@ -23,17 +23,16 @@ phases:
23
23
- aws s3 cp s3://generated-vectors-artifacts-bucket/$CODEBUILD_RESOLVED_SOURCE_VERSION/312_hkeyring_reccmm_manifest.zip 312_hkeyring_reccmm_manifest.zip
24
24
- unzip 312_hkeyring_reccmm_manifest.zip
25
25
- export DAFNY_AWS_ESDK_TEST_VECTOR_MANIFEST_PATH="${PWD}/312_hkeyring_reccmm_manifest/manifest.json"
26
-
27
- # Build the ESDK-Dafny test vector runner
28
- # Clone SDK-Dafny repo to get test vectors runner source code
26
+
27
+ # Clone SDK-Dafny repo to get test vectors runner source code and the Dafny version to use
29
28
- git clone --recurse-submodules https://github.com/aws/aws-encryption-sdk-dafny.git
30
- # Download Dafny to build the test vector runner; get Dafny version from project.properties file
29
+ # Download Dafny to build the test vector runner; get Dafny version from ESDK's project.properties file
31
30
- export dafnyVersion=$(grep '^dafnyVersion=' aws-encryption-sdk-dafny/AwsEncryptionSDK/project.properties | cut -d '=' -f 2)
32
31
- curl https://github.com/dafny-lang/dafny/releases/download/v$dafnyVersion/dafny-$dafnyVersion-x64-ubuntu-20.04.zip -L -o dafny.zip
33
32
- unzip -qq dafny.zip && rm dafny.zip
34
33
- export PATH="$PWD/dafny:$PATH"
35
34
36
- # Build ESDK test vector runner
35
+ # Build ESDK test vector runner from source
37
36
- cd aws-encryption-sdk-dafny
38
37
# TODO: Change branch to published when available
39
38
- git checkout lucmcdon/hkeyring-vectors
@@ -44,9 +43,8 @@ phases:
44
43
- make transpile_net
45
44
46
45
# Change TestVectors to reference the published .NET ESDK
47
- - cd ../../AwsEncryptionSDK/runtimes/net/TestVectorsNative/TestVectors
48
- # - sed -i -e 's/<ProjectReference Include="\.\.\/\.\.\/ESDK\.csproj" \/>/<PackageReference Include="AWS.Cryptography.EncryptionSDK" Version="4.0.1" \/>/g' AWSEncryptionSDKTestVectorLib.csproj
49
- # - cd ../TestVectors
46
+ - cd ../../AwsEncryptionSDK/runtimes/net/TestVectorsNative/TestVectorLib
47
+ - sed -i 's/<ProjectReference Include="\.\./\.\./ESDK\.csproj" />/<PackageReference Include="AWS.Cryptography.EncryptionSDK" />/g' AWSEncryptionSDKTestVectorLib.csproj
50
48
51
49
build :
52
50
commands :
0 commit comments