From 622096ab669fc4cc7b3fd26bb2186c23d97fff02 Mon Sep 17 00:00:00 2001 From: 0FL01 Date: Wed, 23 Jul 2025 11:54:35 +0300 Subject: [PATCH] another try use ccache --- .github/workflows/flatpak-build.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/flatpak-build.yml b/.github/workflows/flatpak-build.yml index 1956bdcdf5..eec241c27a 100644 --- a/.github/workflows/flatpak-build.yml +++ b/.github/workflows/flatpak-build.yml @@ -110,26 +110,32 @@ jobs: env: TDESKTOP_API_ID: ${{ secrets.TDESKTOP_API_ID }} TDESKTOP_API_HASH: ${{ secrets.TDESKTOP_API_HASH }} + CCACHE_DIR: ${{ runner.tool_cache }}/ccache + CCACHE_BASEDIR: ${{ github.workspace }} + CCACHE_MAXSIZE: 5G + CCACHE_LOGFILE: /ccache/ccache.log # optional for debug run: | mkdir -p .ccache sudo chmod -R 777 .ccache docker run --rm \ --cpus="3" \ - -u root \ -v "$PWD:/usr/src/tdesktop" \ - -v "$PWD/.ccache:/ccache" \ + -v "${CCACHE_DIR}:/ccache" \ ghcr.io/telegramdesktop/tdesktop/centos_env:latest \ /bin/bash -c "\ dnf install -y ccache && \ - export CCACHE_DIR=/ccache && \ - export CCACHE_MAXSIZE=2G && \ + export PATH=\"/usr/lib64/ccache:\$PATH\" && \ # <-- ключевое + export CCACHE_DIR=/ccache \ + export CCACHE_BASEDIR=/usr/src/tdesktop \ + export CCACHE_COMPRESS=1 \ /usr/src/tdesktop/Telegram/build/docker/centos_env/build.sh \ -D TDESKTOP_API_ID=${TDESKTOP_API_ID} \ -D TDESKTOP_API_HASH=${TDESKTOP_API_HASH} \ -D USE_CCACHE=ON \ -D CMAKE_C_COMPILER_LAUNCHER=ccache \ -D CMAKE_CXX_COMPILER_LAUNCHER=ccache && \ - ccache -s" + ccache -s && \ + echo 'ccache log: ' && tail -20 /ccache/ccache.log || true" - name: Prepare Flatpak build directory run: |