chore(deps): bump verification/cbmc/aws-c-common from 70ed84b
to 852f8ce
#1195
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: macOS build and test AWS Encryption SDK for C | |
on: ["pull_request", "push"] | |
jobs: | |
OSX: | |
runs-on: ${{ matrix.os }} | |
environment: continuous-integration | |
strategy: | |
matrix: | |
os: [macos-11, macos-latest] | |
openssl_version: [openssl@1.1] | |
steps: | |
- run: brew install ${{ matrix.openssl_version }} | |
- name: Checkout PR | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
if: ${{ github.repository == 'aws/aws-encryption-sdk-c' }} | |
- name: Checkout PR with CI bot token | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
token: ${{ secrets.CI_BOT_TOKEN }} | |
if: ${{ github.repository == 'aws/private-aws-encryption-sdk-c-staging' }} | |
- name: Checkout AWS C++ SDK | |
uses: actions/checkout@v4 | |
with: | |
repository: "aws/aws-sdk-cpp" | |
path: "aws-sdk-cpp" | |
submodules: recursive | |
- name: Install dependencies | |
run: | |
brew install json-c | |
- name: Build and install aws-sdk-cpp | |
run: | | |
# remove the following line once aws-sdk-cpp fixes linux-shared/SimpleUDP.cpp | |
perl -i -p -e 's/"-Werror"//' aws-sdk-cpp/cmake/compiler_settings.cmake | |
mkdir -p build-aws-sdk-cpp || true | |
mkdir -p install || true | |
cd build-aws-sdk-cpp | |
cmake -G Xcode -DTARGET_ARCH="APPLE" -DBUILD_SHARED_LIBS=ON -DBUILD_ONLY="kms" -DENABLE_UNITY_BUILD=ON ../aws-sdk-cpp | |
xcodebuild -target ALL_BUILD | |
xcodebuild -target install | |
- name: Build C-ESDK | |
env: | |
OPENSSL_VERSION: ${{ matrix.openssl_version }} | |
# TODO-RS: Figure out how to safely add AWS credentials and add -DAWS_ENC_SDK_END_TO_END_TESTS=ON and -DAWS_ENC_SDK_KNOWN_GOOD_TESTS=ON | |
run: | | |
mkdir build-aws-encryption-sdk-c || true | |
cd build-aws-encryption-sdk-c | |
cmake -G Xcode -DBUILD_SHARED_LIBS=ON -DOPENSSL_ROOT_DIR="/usr/local/opt/${OPENSSL_VERSION}" ../ | |
xcodebuild -target ALL_BUILD | |
xcodebuild -scheme RUN_TESTS |