From 11f8fb52cfe7e0f40932f0109e9646118f69a841 Mon Sep 17 00:00:00 2001 From: 0FL01 Date: Wed, 23 Jul 2025 07:36:13 +0300 Subject: [PATCH] add cache --- .github/workflows/flatpak-build.yml | 43 ++++++++++++++--------------- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/.github/workflows/flatpak-build.yml b/.github/workflows/flatpak-build.yml index 11e1cf58a1..821bc7b364 100644 --- a/.github/workflows/flatpak-build.yml +++ b/.github/workflows/flatpak-build.yml @@ -106,30 +106,27 @@ jobs: - name: Build AyuGram binary env: - TDESKTOP_API_ID: ${{ secrets.TDESKTOP_API_ID }} - TDESKTOP_API_HASH: ${{ secrets.TDESKTOP_API_HASH }} + TDESKTOP_API_ID: ${{ secrets.TDESKTOP_API_ID }} + TDESKTOP_API_HASH: ${{ secrets.TDESKTOP_API_HASH }} run: | - mkdir -p .ccache - docker run --rm \ - --cpus="3" \ - -u root \ - -v "$PWD:/usr/src/tdesktop" \ - -v "$PWD/.ccache:/ccache" \ - ghcr.io/telegramdesktop/tdesktop/centos_env:latest \ - /bin/bash -c "\ - dnf install -y ccache && \ - ln -s /usr/bin/ccache /usr/local/bin/gcc && \ - ln -s /usr/bin/ccache /usr/local/bin/g++ && \ - ln -s /usr/bin/ccache /usr/local/bin/cc && \ - ln -s /usr/bin/ccache /usr/local/bin/c++ && \ - export CCACHE_DIR=/ccache && \ - export CCACHE_MAXSIZE=2G && \ - export PATH=/usr/local/bin:$PATH && \ - /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 && \ - ccache -s" + mkdir -p .ccache + docker run --rm \ + --cpus="3" \ + -u root \ + -v "$PWD:/usr/src/tdesktop" \ + -v "$PWD/.ccache:/ccache" \ + ghcr.io/telegramdesktop/tdesktop/centos_env:latest \ + /bin/bash -c "\ + dnf install -y ccache && \ + export CCACHE_DIR=/ccache && \ + export CCACHE_MAXSIZE=2G && \ + /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" - name: Prepare Flatpak build directory run: |