mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-09-06 20:13:12 +02:00
add build ccache
This commit is contained in:
parent
30c619915a
commit
c06cc52910
1 changed files with 20 additions and 14 deletions
16
.github/workflows/flatpak-build.yml
vendored
16
.github/workflows/flatpak-build.yml
vendored
|
@ -95,20 +95,26 @@ jobs:
|
||||||
- name: Build static ccache
|
- name: Build static ccache
|
||||||
if: steps.static-ccache.outputs.cache-hit != 'true'
|
if: steps.static-ccache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
sudo dnf install -y gcc-c++ cmake git zlib-devel libzstd-devel fmt-devel
|
echo "Статический ccache не найден в кэше, собираем его..."
|
||||||
|
sudo dnf install -y gcc-c++ cmake git zlib-devel libzstd-devel fmt-devel glibc-static libstdc++-static
|
||||||
|
|
||||||
git clone --depth=1 --branch v4.10 https://github.com/ccache/ccache.git ccache-source
|
git clone --depth=1 --branch v4.10 https://github.com/ccache/ccache.git ccache-source
|
||||||
cd ccache-source
|
cd ccache-source
|
||||||
|
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
|
|
||||||
cmake .. \
|
cmake .. \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DBUILD_SHARED_LIBS=OFF \
|
-DBUILD_SHARED_LIBS=OFF \
|
||||||
-DENABLE_TESTING=OFF \
|
-DSTATIC_LINKING=ON \
|
||||||
-DHIREDIS_FROM_INTERNET=ON \
|
-DENABLE_ZSTD=BUNDLED \
|
||||||
-DCMAKE_EXE_LINKER_FLAGS="-static -static-libgcc -static-libstdc++" \
|
-DENABLE_TESTING=OFF
|
||||||
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY
|
|
||||||
cmake --build . -j$(nproc)
|
cmake --build . -j$(nproc)
|
||||||
|
|
||||||
mkdir -p ${{ github.workspace }}/ccache-static
|
mkdir -p ${{ github.workspace }}/ccache-static
|
||||||
cp ./ccache ${{ github.workspace }}/ccache-static/ccache
|
cp ./ccache ${{ github.workspace }}/ccache-static/ccache
|
||||||
|
echo "Полностью статический ccache успешно собран."
|
||||||
|
|
||||||
- name: Cache TDesktop Dependencies
|
- name: Cache TDesktop Dependencies
|
||||||
id: cache-tdesktop-deps
|
id: cache-tdesktop-deps
|
||||||
|
|
Loading…
Add table
Reference in a new issue