This is an automated email from the ASF dual-hosted git repository. sjanc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit e7a31363a97f5e80a178358f0dc85369417f62f9 Author: Szymon Janc <[email protected]> AuthorDate: Fri May 29 14:43:20 2026 +0200 ci: Setup Mbed TLS 3.6 for linux port examples Latests GHA ubuntu provides only MbedTLS2 so we have to prepare custom setup with required version instead. --- .github/workflows/build_ports.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_ports.yml b/.github/workflows/build_ports.yml index 059a3de18..d182de2e6 100644 --- a/.github/workflows/build_ports.yml +++ b/.github/workflows/build_ports.yml @@ -34,7 +34,32 @@ jobs: shell: bash run: | sudo apt-get update - sudo apt-get install -y make ccache gcc-multilib g++-multilib kconfig-frontends + sudo apt-get install -y make ccache gcc-multilib g++-multilib kconfig-frontends libmbedtls-dev cmake build-essential + - name: Cache 32-bit Mbed TLS 3.6 + id: cache-mbedtls + uses: actions/cache@v4 + with: + path: ${{ github.workspace }}/mbedtls_install + key: ${{ runner.os }}-mbedtls-3.6.5 + - name: Compile Mbed TLS 3.6 (On Cache Miss) + if: steps.cache-mbedtls.outputs.cache-hit != 'true' + run: | + git clone --depth 1 --branch mbedtls-3.6.5 --recursive https://github.com/Mbed-TLS/mbedtls.git + cd mbedtls + cmake -B build \ + -DCMAKE_C_FLAGS="-m32" \ + -DCMAKE_SHARED_LINKER_FLAGS="-m32" \ + -DCMAKE_EXE_LINKER_FLAGS="-m32" \ + -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/mbedtls_install \ + -DUSE_SHARED_MBEDTLS_LIBRARY=On \ + -DENABLE_TESTING=Off + cmake --build build --target install + - name: Export Mbed TLS Environment Paths + run: | + echo "CPATH=${{ github.workspace }}/mbedtls_install/include" >> $GITHUB_ENV + echo "LIBRARY_PATH=${{ github.workspace }}/mbedtls_install/lib" >> $GITHUB_ENV + echo "LD_LIBRARY_PATH=${{ github.workspace }}/mbedtls_install/lib" >> $GITHUB_ENV + echo "MBEDTLS_DIR=${{ github.workspace }}/mbedtls_install" >> $GITHUB_ENV - name: Build example ports shell: bash run: |
