From 01452b730905d041899c24359c943d0a47678244 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Mon, 12 May 2025 05:44:35 +0400 Subject: [PATCH] Add tde2e to macOS Packaged action --- .github/workflows/mac_packaged.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/mac_packaged.yml b/.github/workflows/mac_packaged.yml index a4e99e77fb..58de05abe8 100644 --- a/.github/workflows/mac_packaged.yml +++ b/.github/workflows/mac_packaged.yml @@ -118,10 +118,38 @@ jobs: cmake --build build --parallel + - name: TDE2E cache. + id: cache-tde2e + uses: actions/cache@v4 + with: + path: ${{ env.LibrariesPath }}/tde2e + key: ${{ runner.OS }}-tde2e-${{ env.CACHE_KEY }} + - name: TDE2E. + if: steps.cache-tde2e.outputs.cache-hit != 'true' + run: | + cd $LibrariesPath + + git init tde2e + cd tde2e + git remote add origin $GIT/tdlib/td.git + git fetch --depth=1 origin 51743dfd01dff6179e2d8f7095729caa4e2222e9 + git reset --hard FETCH_HEAD + + cmake -Bbuild -GNinja . \ + -DCMAKE_BUILD_TYPE=Debug \ + -DCMAKE_INSTALL_PREFIX=$PWD/build/prefix \ + -DCMAKE_C_FLAGS_DEBUG="" \ + -DCMAKE_CXX_FLAGS_DEBUG="" \ + -DTD_E2E_ONLY=ON + + cmake --build build --parallel + cmake --install build + - name: Telegram Desktop build. if: env.ONLY_CACHE == 'false' env: tg_owt_DIR: ${{ env.LibrariesPath }}/tg_owt/build + tde2e_DIR: ${{ env.LibrariesPath }}/tde2e/build/prefix run: | cd $REPO_NAME