From dd46d805c59d43af3e44736d60f3ed84756f475a Mon Sep 17 00:00:00 2001 From: Divya Sampath Kumar Date: Fri, 1 Mar 2024 13:41:01 -0800 Subject: [PATCH] Mbedtls update (#1939) * Mbedtls mac build fix - update on mac * Try with develop and remove wno checks * Add mbedtls mac CI * macro redefine * Remove the compiler checks for lws * Update mbedtls to fix error in macos --- .github/workflows/ci.yml | 28 ++++++++++++++++++++ CMake/Dependencies/libmbedtls-CMakeLists.txt | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7abbc51028..6aff0b6949 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -447,6 +447,34 @@ jobs: run: | cd build timeout --signal=SIGABRT 60m ./tst/webrtc_client_test + + mbedtls-mac-os-build-clang: + runs-on: macos-latest + env: + CC: /usr/bin/clang + CXX: /usr/bin/clang++ + AWS_KVS_LOG_LEVEL: 2 + permissions: + id-token: write + contents: read + steps: + - name: Clone repository + uses: actions/checkout@v4 + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} + aws-region: ${{ secrets.AWS_REGION }} + - name: Build repository + run: | + mkdir build && cd build + cmake .. -DBUILD_TEST=TRUE -DUSE_OPENSSL=OFF -DUSE_MBEDTLS=ON + make + - name: Run tests + run: | + cd build + ./tst/webrtc_client_test + sample-check: if: github.repository == 'awslabs/amazon-kinesis-video-streams-webrtc-sdk-c' runs-on: ubuntu-latest diff --git a/CMake/Dependencies/libmbedtls-CMakeLists.txt b/CMake/Dependencies/libmbedtls-CMakeLists.txt index 2aa6f7ba72..dc31237f92 100644 --- a/CMake/Dependencies/libmbedtls-CMakeLists.txt +++ b/CMake/Dependencies/libmbedtls-CMakeLists.txt @@ -21,7 +21,7 @@ message(STATUS "C flags here are ${CMAKE_C_FLAGS}") ExternalProject_Add( project_libmbedtls GIT_REPOSITORY https://github.com/ARMmbed/mbedtls.git - GIT_TAG v2.25.0 + GIT_TAG v2.28.5 PREFIX ${CMAKE_CURRENT_BINARY_DIR}/build CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${OPEN_SRC_INSTALL_PREFIX}