mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-09-04 11:03:14 +02:00
add cache
This commit is contained in:
parent
ba3fc3fcf4
commit
b2abfee512
1 changed files with 7 additions and 6 deletions
9
.github/workflows/flatpak-build.yml
vendored
9
.github/workflows/flatpak-build.yml
vendored
|
@ -117,17 +117,18 @@ jobs:
|
|||
-v "$PWD/.ccache:/ccache" \
|
||||
ghcr.io/telegramdesktop/tdesktop/centos_env:latest \
|
||||
/bin/bash -c "\
|
||||
# Установка ccache
|
||||
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 && \
|
||||
# Запуск сборки с поддержкой ccache
|
||||
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"
|
||||
|
||||
- name: Prepare Flatpak build directory
|
||||
|
|
Loading…
Add table
Reference in a new issue