@@ -83,31 +83,43 @@ jobs:
8383 path : ./${{ matrix.library }}/aws-encryption-sdk-c/aws-sdk-cpp
8484 submodules : recursive
8585
86- - name : Build and install aws-sdk-cpp
86+ - name : Build and install aws-sdk-cpp (with retry)
8787 if : matrix.language == 'c' && matrix.os != 'ubuntu-22.04'
88- working-directory : ./${{ matrix.library }}/aws-encryption-sdk-c
89- run : |
90- # remove the following line once aws-sdk-cpp fixes linux-shared/SimpleUDP.cpp
91- perl -i -p -e 's/"-Werror"//' aws-sdk-cpp/cmake/compiler_settings.cmake
92- mkdir -p aws-encryption-sdk-c/build-aws-sdk-cpp || true
93- mkdir -p install || true
94- cd build-aws-sdk-cpp
95- cmake -G Xcode -DTARGET_ARCH="APPLE" -DBUILD_SHARED_LIBS=ON -DBUILD_ONLY="kms" -DENABLE_UNITY_BUILD=ON -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/TestVectors/aws-encryption-sdk-c/install -DCMAKE_PREFIX_PATH=${{github.workspace}}/TestVectors/aws-encryption-sdk-c/install ../aws-sdk-cpp
96- xcodebuild -target ALL_BUILD
97- xcodebuild -target install
98-
99- - name : Build and install aws-sdk-cpp
88+ uses : nick-fields/retry@v3
89+ with :
90+ timeout_minutes : 30
91+ max_attempts : 3
92+ retry_on : error
93+ shell : bash
94+ command : |
95+ cd ./${{ matrix.library }}/aws-encryption-sdk-c
96+ # remove the following line once aws-sdk-cpp fixes linux-shared/SimpleUDP.cpp
97+ perl -i -p -e 's/"-Werror"//' aws-sdk-cpp/cmake/compiler_settings.cmake
98+ mkdir -p aws-encryption-sdk-c/build-aws-sdk-cpp || true
99+ mkdir -p install || true
100+ cd build-aws-sdk-cpp
101+ cmake -G Xcode -DTARGET_ARCH="APPLE" -DBUILD_SHARED_LIBS=ON -DBUILD_ONLY="kms" -DENABLE_UNITY_BUILD=ON -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/TestVectors/aws-encryption-sdk-c/install -DCMAKE_PREFIX_PATH=${{github.workspace}}/TestVectors/aws-encryption-sdk-c/install ../aws-sdk-cpp
102+ xcodebuild -target ALL_BUILD
103+ xcodebuild -target install
104+
105+ - name : Build and install aws-sdk-cpp (with retry)
100106 if : matrix.os == 'ubuntu-22.04' && matrix.language == 'c'
101- working-directory : ./${{ matrix.library }}/aws-encryption-sdk-c
102- run : |
103- # remove the following line once aws-sdk-cpp fixes linux-shared/SimpleUDP.cpp
104- perl -i -p -e 's/"-Werror"//' aws-sdk-cpp/cmake/compiler_settings.cmake
105- mkdir -p build-aws-sdk-cpp || true
106- mkdir -p install || true
107- cd build-aws-sdk-cpp
108- cmake -DBUILD_SHARED_LIBS=ON -DBUILD_ONLY="kms" -DENABLE_UNITY_BUILD=ON -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/TestVectors/aws-encryption-sdk-c/install -DCMAKE_PREFIX_PATH=${{github.workspace}}/TestVectors/aws-encryption-sdk-c/install ../aws-sdk-cpp
109- make
110- make install
107+ uses : nick-fields/retry@v3
108+ with :
109+ timeout_minutes : 30
110+ max_attempts : 3
111+ retry_on : error
112+ shell : bash
113+ command : |
114+ cd ./${{ matrix.library }}/aws-encryption-sdk-c
115+ # remove the following line once aws-sdk-cpp fixes linux-shared/SimpleUDP.cpp
116+ perl -i -p -e 's/"-Werror"//' aws-sdk-cpp/cmake/compiler_settings.cmake
117+ mkdir -p build-aws-sdk-cpp || true
118+ mkdir -p install || true
119+ cd build-aws-sdk-cpp
120+ cmake -DBUILD_SHARED_LIBS=ON -DBUILD_ONLY="kms" -DENABLE_UNITY_BUILD=ON -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/TestVectors/aws-encryption-sdk-c/install -DCMAKE_PREFIX_PATH=${{github.workspace}}/TestVectors/aws-encryption-sdk-c/install ../aws-sdk-cpp
121+ make
122+ make install
111123
112124 - name : Build C-ESDK
113125 if : matrix.language == 'c' && matrix.os != 'ubuntu-22.04'
@@ -285,7 +297,7 @@ jobs:
285297 run : make test_encrypt_vectors_c_unix
286298
287299 - name : Upload Keyring Encrypt Manifest and keys.json files
288- uses : actions/upload-artifact@v4
300+ uses : actions/upload-artifact@v6
289301 with :
290302 name : ${{matrix.os}}_vector_artifact_${{matrix.language}}_${{github.sha}}
291303 path : |
0 commit comments